Fix layout test to output the same result for V8 and JSC
https://bugs.webkit.org/show_bug.cgi?id=81395

Reviewed by Nate Chapin.

* fast/dom/inline-event-attributes-crash-expected.txt:
* fast/dom/inline-event-attributes-crash.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fast/dom/inline-event-attributes-crash.html b/LayoutTests/fast/dom/inline-event-attributes-crash.html
index 05c5772..1dfbdb0 100644
--- a/LayoutTests/fast/dom/inline-event-attributes-crash.html
+++ b/LayoutTests/fast/dom/inline-event-attributes-crash.html
@@ -11,9 +11,16 @@
     element.dispatchEvent(clickEvent);
 }
 
+// Ignore errors due to the syntax error in the attribute.
+window.onerror = function() {
+    return true;
+};
+
 var div = document.createElement('div');
 div.setAttribute('onclick', 'return 42; }(); var x = {');
 dispatchClick(div);
 
+testPassed('Did not crash');
+
 </script>
 <script src="../js/resources/js-test-post.js"></script>
\ No newline at end of file