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

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

Issue 1923043002: Import web-platform-tests@028d354aba4c8ee6700def957a45f3927241d8b0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix expectations after the test harness was updated Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/ProgressEvent.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/ProgressEvent.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/ProgressEvent.html
index 5a4e07643e6be4a94bdf4acda33063840ca76073..1995d1ae517e1df02593b391f108cfd269e054a6 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/ProgressEvent.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/ProgressEvent.html
@@ -18,8 +18,8 @@ test(function() {
assert_true("initEvent" in ev)
}, "Default event values.")
test(function() {
- assert_throws("NotSupportedError", function() {
- document.createEvent("ProgressEvent")
- })
-}, "document.createEvent() should not work with ProgressEvent.")
+ var e = document.createEvent("ProgressEvent");
+ var eProto = Object.getPrototypeOf(e);
+ assert_equals(eProto, ProgressEvent.prototype);
+}, "document.createEvent() should work with ProgressEvent.");
</script>

Powered by Google App Engine
This is Rietveld 408576698