commit | 7d77f6d2b733e5cdf92be4471347a8ce5083c70b | [log] [tgz] |
---|---|---|
author | arv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Fri Mar 16 20:27:30 2012 +0000 |
committer | arv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Fri Mar 16 20:27:30 2012 +0000 |
tree | 94937d5e1ba6d31f6ef2bb4c4ec8e8a29249684e | |
parent | 6369d306e61e18bc7938554288e662f48b12cb11 [diff] [blame] |
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