diff options
Diffstat (limited to 'testing/web-platform/tests/client-hints/viewport-size/viewport-size-iframe.https.html')
-rw-r--r-- | testing/web-platform/tests/client-hints/viewport-size/viewport-size-iframe.https.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/client-hints/viewport-size/viewport-size-iframe.https.html b/testing/web-platform/tests/client-hints/viewport-size/viewport-size-iframe.https.html new file mode 100644 index 0000000000..6cb549d8f1 --- /dev/null +++ b/testing/web-platform/tests/client-hints/viewport-size/viewport-size-iframe.https.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> +<body> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script> +promise_test(t => { + return new Promise(resolve => { + window.addEventListener("message", t.step_func(e => { + assert_equals(e.data.viewportWidth, window.innerWidth.toString()); + assert_equals(e.data.viewportHeight, window.innerHeight.toString()); + resolve(); + })); + }); +}); +</script> +<iframe src="../resources/viewport-frame.py" width=503 height=614></iframe> |