Automatic update from web-platform-tests [AWC] Add Web Platform Tests for Additional Windowing Controls API This commit moves the web platform tests for display-state and resizable properties from Chromium wpt_internal directory and introduces new tests for Additional Windowing Controls API methods. Bug: 288265319 Link: https://chromium-review.googlesource.com/id/I85fb832e71120f187cc7320721e3c1be6a6a6964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7844557 Reviewed-by: Edman Anjos <edman@chromium.org> Commit-Queue: Patryk Chodur <pchodur@google.com> Cr-Commit-Position: refs/heads/main@{#1630187} -- wpt-commits: 1b61e4ec84fbb7aba7d76cce31ce06715ad21bbb wpt-pr: 59860
23 lines
1004 B
HTML
23 lines
1004 B
HTML
<!DOCTYPE html>
|
|
<link rel="help" href="https://github.com/explainers-by-googlers/additional-windowing-controls/blob/main/README.md" />
|
|
<script type="text/javascript" src="/resources/testharness.js"></script>
|
|
<script type="text/javascript" src="/resources/testharnessreport.js"></script>
|
|
<script type="text/javascript" src="/css/mediaqueries/resources/matchmedia-utils.js"></script>
|
|
<script>
|
|
query_should_be_known("(resizable: true)");
|
|
query_should_be_known("(resizable: false)");
|
|
query_should_be_known("(resizable)");
|
|
|
|
query_should_be_unknown("(resizable: 0)");
|
|
query_should_be_unknown("(resizable: 1)");
|
|
query_should_be_unknown("(resizable: none)");
|
|
query_should_be_unknown("(resizable: random)");
|
|
query_should_be_unknown("(resizable: 10px)");
|
|
query_should_be_unknown("(resizable: 1%)");
|
|
|
|
test(() => {
|
|
let booleanContext = window.matchMedia("(resizable)");
|
|
assert_true(booleanContext.matches);
|
|
}, "Check that resizable evaluates to true in the boolean context");
|
|
</script>
|