зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1631148 [wpt PR 23082] - Screen Enumeration: Add a placeholder Screen.id to replace Screen.name, a=testonly
Automatic update from web-platform-tests Screen Enumeration: Add a placeholder Screen.id to replace Screen.name Use placeholder ordinal ids for now (0, 1, 2, ...); update tests. TODO: generate per-origin UUIDs that reset when cookies are deleted Test Screen.id values returned via window.getScreens() with: chrome://flags#enable-experimental-web-platform-features OR $ chrome --enable-blink-features=ScreenEnumeration Try https://michaelwasserman.github.io/window-placement-demo Bug: 994889 Test: Automated, Screen.id placeholder values Change-Id: I0c5b18b92fef251211822f3473ea85472a7ee945 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2155113 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#761040} -- wpt-commits: f8d36b93adcfb21622c935a77427bf99caf3d1e3 wpt-pr: 23082
This commit is contained in:
Родитель
cf6e4f63dc
Коммит
a9d04f3d5c
|
@ -25,5 +25,5 @@ promise_test(async testCase => {
|
|||
assert_equals(typeof screens[0].primary, 'boolean');
|
||||
assert_equals(typeof screens[0].internal, 'boolean');
|
||||
assert_equals(typeof screens[0].scaleFactor, 'number');
|
||||
assert_equals(typeof screens[0].name, 'string');
|
||||
assert_equals(typeof screens[0].id, 'string');
|
||||
}, 'self.getScreens returns at least 1 Screen');
|
Загрузка…
Ссылка в новой задаче