From a5ae20689448dff656a4b5582e333cd1db126519 Mon Sep 17 00:00:00 2001
From: Juha Vainio <juha.j.vainio@intel.com>
Date: Fri, 23 Feb 2024 10:17:13 +0200
Subject: [PATCH] Combine two event style tests

Two tests where similar, so other was delete.
---
 device-posture/device-posture.https.html | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

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