summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/screen-details/isExtended.tentative.https.window.js
blob: 3c814ae3d91d519500f7b44ab8fe4faa8a861d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
// META: global=window
'use strict';

promise_test(async t => {
  assert_equals(typeof self.screen.isExtended, 'boolean');
}, 'screen.isExtended is present');

promise_test(async t => {
  let iframe = document.body.appendChild(document.createElement('iframe'));
  assert_equals(typeof iframe.contentWindow.screen.isExtended, 'boolean');
}, 'screen.isExtended is present for attached iframes');