Skip to content

Commit

Permalink
Specify useCapture argument in addEventListener calls (web-platform-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert authored and sideshowbarker committed Nov 9, 2016
1 parent eccb7d1 commit 7bc5fb0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

/**
Expand All @@ -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);
}
};

Expand Down Expand Up @@ -2686,8 +2686,8 @@ policies and contribution forms [3].
}
};

addEventListener("error", error_handler);
addEventListener("unhandledrejection", function(e){ error_handler(e.reason); });
addEventListener("error", error_handler, false);
addEventListener("unhandledrejection", function(e){ error_handler(e.reason); }, false);

test_environment.on_tests_ready();

Expand Down

0 comments on commit 7bc5fb0

Please sign in to comment.