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

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

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <title>Event.initEvent</title> 2 <title>Event.initEvent</title>
3 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> 3 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
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 var booleans = [true, false]; 8 var booleans = [true, false];
9 booleans.forEach(function(bubbles) { 9 booleans.forEach(function(bubbles) {
10 booleans.forEach(function(cancelable) { 10 booleans.forEach(function(cancelable) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 e.initEvent("type2", true, true); 112 e.initEvent("type2", true, true);
113 assert_equals(e.type, "type", "initEvent type setter should short-circuit"); 113 assert_equals(e.type, "type", "initEvent type setter should short-circuit");
114 assert_false(e.bubbles, "initEvent bubbles setter should short-circuit"); 114 assert_false(e.bubbles, "initEvent bubbles setter should short-circuit");
115 assert_false(e.cancelable, "initEvent cancelable setter should short-circuit "); 115 assert_false(e.cancelable, "initEvent cancelable setter should short-circuit ");
116 }), false) 116 }), false)
117 assert_equals(target.dispatchEvent(e), true, "dispatchEvent must return true") 117 assert_equals(target.dispatchEvent(e), true, "dispatchEvent must return true")
118 118
119 this.done() 119 this.done()
120 }, "Calling initEvent during propagation.") 120 }, "Calling initEvent during propagation.")
121 </script> 121 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698