Revision 790e6601ee8b4b412b6ad9f6fde466b7ccb9cb7e authored by Darren Shen on 19 March 2018, 00:26:33 UTC, committed by Blink WPT Bot on 19 March 2018, 00:36:58 UTC
This patch: - Adds mutation tests for CSSUnitValue.value. - Clean up code style. Bug: 774887 Change-Id: I5a6398c4a4a2ad86f60165780ee8d48bb3d8b0a1 Reviewed-on: https://chromium-review.googlesource.com/954642 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#543959}
1 parent e87f380
shared-worker-name-via-options.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Test the name property of shared workers mixing constructor options and constructor strings</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#concept-workerglobalscope-name">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-sharedworker">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-sharedworkerglobalscope-name">
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
const name = "my name";
const worker1 = new SharedWorker("support/shared-name.js", { name });
worker1.port.onmessage = receiveMessage;
const worker2 = new SharedWorker("support/shared-name.js", { name });
worker2.port.onmessage = receiveMessage;
const worker3 = new SharedWorker("support/shared-name.js", name);
worker3.port.onmessage = receiveMessage;
let nextCounterExpected = 1;
function receiveMessage(e) {
const { counter, name: receivedName } = e.data;
assert_equals(receivedName, name);
assert_equals(counter, nextCounterExpected);
++nextCounterExpected;
if (nextCounterExpected === 4) {
done();
}
}
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...