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

Side by Side Diff: LayoutTests/fast/events/dragevent-constructor.html

Issue 1232003009: Implement DragEvent and move MouseEvent.dataTransfer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase and add layoutTest Created 5 years, 4 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 <!DOCTYPE html>
2 <html>
3 <head>
Rick Byers 2015/07/30 17:24:18 nit: you can ommit html, head and body tags: https
Jimmy Jo 2015/07/31 03:43:39 Done.
4 <link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#d ragevent">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests the constructor of the standard drag event");
10
11 var testEvent;
12 shouldNotThrow("testEvent = new DragEvent('dragstart')");
13 shouldBe("testEvent.__proto__", "DragEvent.prototype");
14 shouldBe("testEvent.dataTransfer", "null");
15
16 shouldNotThrow("testEvent = new DragEvent('dragstart', { dataTransfer:null })");
17 shouldBe("testEvent.__proto__", "DragEvent.prototype");
18 shouldBe("testEvent.dataTransfer", "null");
19
20 </script>
21 </body>
22 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/dragevent-constructor-expected.txt » ('j') | Source/core/events/DragEvent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698