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

Unified Diff: third_party/WebKit/LayoutTests/resources/testharness.js

Issue 2657583002: Import wpt@cf62b859e6b890abc34f8140d185ba91df95c5b6 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/LayoutTests/resources/idlharness.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/resources/testharness.js
diff --git a/third_party/WebKit/LayoutTests/resources/testharness.js b/third_party/WebKit/LayoutTests/resources/testharness.js
index 49e386754ba7a2715e2231bafb6bca0c8dea6201..a6e7913e7bcb878f7719714aa30f75b0313dae10 100644
--- a/third_party/WebKit/LayoutTests/resources/testharness.js
+++ b/third_party/WebKit/LayoutTests/resources/testharness.js
@@ -389,7 +389,7 @@ policies and contribution forms [3].
self.addEventListener("connect",
function(message_event) {
this_obj._add_message_port(message_event.source);
- });
+ }, false);
}
SharedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
@@ -430,7 +430,7 @@ policies and contribution forms [3].
this_obj._add_message_port(event.source);
}
}
- });
+ }, false);
// The oninstall event is received after the service worker script and
// all imported scripts have been fetched and executed. It's the
@@ -586,7 +586,7 @@ policies and contribution forms [3].
});
for (var i = 0; i < eventTypes.length; i++) {
- watchedNode.addEventListener(eventTypes[i], eventHandler);
+ watchedNode.addEventListener(eventTypes[i], eventHandler, false);
}
/**
@@ -611,7 +611,7 @@ policies and contribution forms [3].
function stop_watching() {
for (var i = 0; i < eventTypes.length; i++) {
- watchedNode.removeEventListener(eventTypes[i], eventHandler);
+ watchedNode.removeEventListener(eventTypes[i], eventHandler, false);
}
};
@@ -2669,7 +2669,7 @@ policies and contribution forms [3].
var tests = new Tests();
- addEventListener("error", function(e) {
+ var error_handler = function(e) {
if (tests.file_is_test) {
var test = tests.tests[0];
if (test.phase >= test.phases.HAS_RESULT) {
@@ -2684,7 +2684,10 @@ policies and contribution forms [3].
tests.status.message = e.message;
tests.status.stack = e.stack;
}
- });
+ };
+
+ addEventListener("error", error_handler, false);
+ addEventListener("unhandledrejection", function(e){ error_handler(e.reason); }, false);
test_environment.on_tests_ready();
« no previous file with comments | « third_party/WebKit/LayoutTests/resources/idlharness.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698