Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/events/Event-dispatch-throwing.html

Issue 2012333004: Fix testharness paths in imported/wpt/{dom,html}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <title>Throwing in event listeners</title> 3 <title>Throwing in event listeners</title>
4 <script src="../../../../resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="../../../../resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <div id="log"></div> 6 <div id="log"></div>
7 <script> 7 <script>
8 setup({allow_uncaught_exception:true}) 8 setup({allow_uncaught_exception:true})
9 9
10 test(function() { 10 test(function() {
11 var errorEvents = 0; 11 var errorEvents = 0;
12 window.onerror = this.step_func(function(e) { 12 window.onerror = this.step_func(function(e) {
13 assert_equals(typeof e, 'string'); 13 assert_equals(typeof e, 'string');
14 ++errorEvents; 14 ++errorEvents;
15 }); 15 });
(...skipping 26 matching lines...) Expand all
42 element.addEventListener('click', this.step_func(function() { 42 element.addEventListener('click', this.step_func(function() {
43 secondCalled = true; 43 secondCalled = true;
44 }), false); 44 }), false);
45 45
46 element.dispatchEvent(new Event('click')); 46 element.dispatchEvent(new Event('click'));
47 47
48 assert_equals(errorEvents, 1); 48 assert_equals(errorEvents, 1);
49 assert_true(secondCalled); 49 assert_true(secondCalled);
50 }, "Throwing in event listener with multiple listeners"); 50 }, "Throwing in event listener with multiple listeners");
51 </script> 51 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698