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

Side by Side Diff: third_party/WebKit/LayoutTests/transitions/transition-end-event-create.html

Issue 2822083002: Remove non-standard document.createEvent('WebKitTransitionEvent'). (Closed)
Patch Set: . Created 3 years, 8 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
(Empty)
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 </head>
5 <body>
6 <p id="description"></p>
7 <div id="console"></div>
8 <script>
9
10 description("Test dynamic creation of WebKitTransitionEnd event.");
11
12 if (document.createEvent)
13 testPassed("document.createEvent exists");
14 else
15 testFailed("document.createEvent missing");
16
17 debug("");
18 debug("Test creation of WebKitTransitionEvent");
19
20 var ev = document.createEvent("WebKitTransitionEvent");
21
22 shouldBe("typeof(ev)", "'object'");
23 shouldBe("ev.propertyName", "''");
24 shouldBe("ev.elapsedTime", "0.0");
25
26 debug("");
27 debug("Create a MouseEvent and make sure it doesn't have the WebKitTransitionEnd event properties");
28
29 ev = document.createEvent("MouseEvent");
30
31 shouldBe("typeof(ev)", "'object'");
32 shouldBe("ev.propertyName", "undefined");
33 shouldBe("ev.elapsedTime", "undefined");
34
35 debug("");
36
37 </script>
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698