Revision f90d3d6e1592058b51eb94b48ff06f046e8ccf74 authored by Andreas Tolfsen on 13 April 2018, 13:33:50 UTC, committed by moz-wptsync-bot on 13 April 2018, 13:46:58 UTC
Ports tests added to Marionette in bug 1284232 to WPT. These test that the Arguments, Array, FileList, HTMLAllCollection, HTMLCollection, HTMLFormControlsCollection, HTMLOptionsCollection, and NodeList collections are properly serialised when returned from an injected script. There is one failing test that needs more investigation. My current suspicion is that it is a JavaScript bug. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1453009 gecko-commit: 172094bca9a6e2f841e629aae292647e212d92c6 gecko-integration-branch: central gecko-reviewers: whimboo
1 parent 4c8580c
Worker_dispatchEvent_ErrorEvent.htm
<!DOCTYPE html>
<title> ErrorEvent and Worker.dispatchEvent() </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
var event = "error";
var filename = './support/ErrorEvent.js';
var message = 'Hello Worker';
var lineno = 5;
var colno = 6;
var error = new Error("test");
var worker = new Worker(filename);
worker.addEventListener(event, t.step_func_done(function(e) {
assert_equals(e.type, event, 'type');
assert_equals(e.message, message, 'message');
assert_equals(e.filename, filename, 'filename');
assert_equals(e.lineno, lineno, 'lineno');
assert_equals(e.colno, colno, 'colno');
assert_equals(e.error, error, 'error');
}), true);
var e = new ErrorEvent(event, {bubbles:true, cancelable:true, message:message, filename:filename, lineno:lineno, colno:colno, error:error});
worker.dispatchEvent(e);
});
test(function() {
var e = new ErrorEvent("error");
assert_false("initErrorEvent" in e, "should not be supported");
}, "initErrorEvent");
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...