Commit f71cd2ff authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@2df046f3c0a859777b811cfbbe321c3547b7db4b

Using wpt-import in Chromium 4ad77ed4.
With Chromium commits locally applied on WPT:
68d5240e "[ChromeDriver] Set key modifiers with mouse actions"
682affef "Implemented setPlaybackRate for scroll-linked Worklet Animations."
2b037bdc "[Animation Worklet] Fix flaky worklet-animation-with-fill-mode.https.html"
5fef8801 "Make -webkit-line-clamp respect line-height."


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
kenneth.r.christiansen@intel.com, rijubrata.bhaumik@intel.com:
  external/wpt/web-nfc

NOAUTOREVERT=true
TBR=robertma

No-Export: true
Change-Id: Ib32ca8a773ec22b0d2c1b8e3680bfdbc9f09d5c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1504979Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#638040}
parent 8fc96c48
......@@ -3024,6 +3024,8 @@ crbug.com/893480 external/wpt/infrastructure/testdriver/actions/multiDevice.html
crbug.com/918664 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/sizing/block-size-with-min-or-max-content-table-1a.html [ Failure Pass ]
# ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Mac10.10 ] virtual/threaded/external/wpt/animation-worklet/worklet-animation-with-scroll-timeline-root-scroller.https.html [ Failure ]
crbug.com/626703 [ Mac10.11 ] virtual/threaded/external/wpt/animation-worklet/worklet-animation-with-scroll-timeline-root-scroller.https.html [ Failure ]
crbug.com/626703 external/wpt/html/semantics/forms/the-fieldset-element/accessibility/fieldset-div-display-contents-manual.html [ Skip ]
crbug.com/626703 external/wpt/html/semantics/forms/the-fieldset-element/accessibility/role-manual.html [ Skip ]
crbug.com/626703 external/wpt/html/semantics/forms/the-fieldset-element/accessibility/shadow-dom-manual.html [ Skip ]
......
This is a testharness.js-based test.
FAIL NFCReader.start should fail if NFC HW is disabled. promise_test: Unhandled rejection with value: object "ReferenceError: NFCReader is not defined"
FAIL NFCWriter.push should fail when NFC HW is disabled. NFCWriter is not defined
Harness: the test ran to completion.
......@@ -11,7 +11,7 @@
<h2>Precondition</h2>
<ol>
<li>
Disable the NFC Module.
Disable the NFC module or run test on a device without NFC module.
</li>
</ol>
......@@ -21,12 +21,17 @@
"use strict";
promise_test(t => {
return promise_rejects(t, 'NotSupportedError', navigator.nfc.watch(noop));
}, "Test that nfc.watch fails if NFC HW is disabled.");
promise_test(async t => {
const reader = new NFCReader();
const readerWatcher = new EventWatcher(t, reader, ["reading", "error"]);
reader.start();
const event = await readerWatcher.wait_for("error");
assert_equals(event.error.name, 'NotReadableError');
}, "NFCReader.start should fail if NFC HW is disabled.");
promise_test(t => {
return promise_rejects(t, 'NotSupportedError', navigator.nfc.push(test_text_data));
}, "nfc.push should fail when NFC HW is disabled.");
const writer = new NFCWriter();
return promise_rejects(t, 'NotReadableError', writer.push(test_text_data));
}, "NFCWriter.push should fail when NFC HW is disabled.");
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment