diff --git a/device-posture/device-posture.https.html b/device-posture/device-posture.https.html index afb9bc45883328..b02283743b8bad 100644 --- a/device-posture/device-posture.https.html +++ b/device-posture/device-posture.https.html @@ -17,6 +17,7 @@ }, name, properties); } +// REFERENCE https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/http/tests/inspector-protocol/device-posture/device-posture-change-event.js device_posture_test(async (t) => { const watcher = new EventWatcher(t, navigator.devicePosture, ['change']); const postures = ['folded', 'continuous', 'folded']; @@ -26,23 +27,6 @@ assert_equals(posture, navigator.devicePosture.type); }); } -}, 'Device posture test.'); - - - - - -// REFERENCE https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/http/tests/inspector-protocol/device-posture/device-posture-change-event.js -device_posture_test(async (t) => { - assert_equals(navigator.devicePosture.type, 'continuous'); - - const promise = new Promise(resolve => { - navigator.devicePosture.onchange = function() { - resolve(navigator.devicePosture.type); - } - }); - test_driver.set_device_posture('folded'); - assert_equals(await promise, 'folded') }, 'Device posture test: device-posture-change-event.js.'); // REFERENCE https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/http/tests/inspector-protocol/device-posture/device-posture-default.js