Revision e6756de059f68d445306ac35a6b8e80633d75925 authored by Chris Nardi on 26 April 2018, 18:12:45 UTC, committed by Blink WPT Bot on 26 April 2018, 18:30:18 UTC
https://github.com/w3c/csswg-drafts/issues/2484 details the resolution by the CSSWG to accept two values in the overflow shorthand. Update our implementation to match this, and also update two existing CSSOM serialization tests. Additionally remove tests that are duplicates of those currently found in WPT. Intent to Implement and Ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/4qF8XPQ1z2s Bug: 833105 Change-Id: Id8f61182a7d7369a2f575acfdbf608600d1218dd Reviewed-on: https://chromium-review.googlesource.com/1013618 Commit-Queue: Chris Nardi <cnardi@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#554078}
1 parent f3bac8d
wakelock-onactivechange.https.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Wake Lock 'onactivechange' Test</title>
<link rel="help" href="https://w3c.github.io/wake-lock/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
const wakeLock = await navigator.getWakeLock("screen");
const eventWatcher = new EventWatcher(t, wakeLock, "activechange");
assert_false(wakeLock.active, "the active is false before wake lock is acquired");
let request = wakeLock.createRequest();
let evt1 = await eventWatcher.wait_for("activechange");
assert_true(evt1.isTrusted && !evt1.bubbles && !evt1.cancelable && evt1 instanceof Event, "a simple event is fired");
assert_equals(evt1.type, "activechange", "the event name is 'activechange'");
assert_equals(evt1.target, wakeLock, "event.target is WakeLock.");
assert_true(wakeLock.active, "the active is true when wake lock is acquired");
request.cancel();
let evt2 = await eventWatcher.wait_for("activechange");
assert_true(evt2.isTrusted && !evt2.bubbles && !evt2.cancelable && evt2 instanceof Event, "a simple event is fired");
assert_false(wakeLock.active, "the active is false when wake lock is released");
}, "Test that 'activechange' event is fire and wakeLock.active is valid");
</script>
Computing file changes ...