mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests Move HTMLScriptElement.supports() test to a higher level It is not prerender specific, so it can be in this folder. Bug: 40273170 Change-Id: I3f664b074236f8f6062ddb7c18f7e59ff6cf32e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6616061 Commit-Queue: Hiroki Nakagawa <[email protected]> Reviewed-by: Hiroki Nakagawa <[email protected]> Auto-Submit: Domenic Denicola <[email protected]> Cr-Commit-Position: refs/heads/main@{#1468575} -- wpt-commits: 760dcb0203d711d9b34f7a2a5fa32ef54c4d3c29 wpt-pr: 52927
20 lines
820 B
HTML
20 lines
820 B
HTML
<!DOCTYPE html>
|
|
<title>HTMLScriptElement.supports speculationrules</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
|
|
<script>
|
|
test(() => {
|
|
assert_true(HTMLScriptElement.supports('speculationrules'));
|
|
}, 'HTMLScriptElement.supports returns true for \'speculationrules\'');
|
|
|
|
test(() => {
|
|
assert_false(HTMLScriptElement.supports(' speculationrules'));
|
|
assert_false(HTMLScriptElement.supports('speculationrules '));
|
|
assert_false(HTMLScriptElement.supports('Speculationrules'));
|
|
assert_false(HTMLScriptElement.supports('SpeculationRules'));
|
|
assert_false(HTMLScriptElement.supports('speculationRules'));
|
|
assert_false(HTMLScriptElement.supports('speculation-rules'));
|
|
}, 'HTMLScriptElement.supports returns false for unsupported types');
|
|
</script>
|