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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/ProgressEvent.html

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 years 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 <title>ProgressEvent constructor</title>
3 <script src=../../../../resources/testharness.js></script>
4 <script src=../../../../resources/testharnessreport.js></script>
5 <div id=log></div>
6 <script>
7 test(function() {
8 var ev = new ProgressEvent("test")
9 assert_equals(ev.type, "test")
10 assert_equals(ev.target, null)
11 assert_equals(ev.currentTarget, null)
12 assert_equals(ev.eventPhase, Event.NONE)
13 assert_equals(ev.bubbles, false)
14 assert_equals(ev.cancelable, false)
15 assert_equals(ev.defaultPrevented, false)
16 assert_equals(ev.isTrusted, false)
17 assert_true(ev.timeStamp > 0)
18 assert_true("initEvent" in ev)
19 }, "Default event values.")
20 test(function() {
21 assert_throws("NotSupportedError", function() {
22 document.createEvent("ProgressEvent")
23 })
24 }, "document.createEvent() should not work with ProgressEvent.")
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698