Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html

Issue 1926813004: Replace assert_promise_rejects with upstream promise_rejects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove all testharness-helpers.js references Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
index 0007605d947a9d135756d5b29d9ce6b729cc1dad..18a902ea6b326c7c94725b7b5f28b84d6bfa451b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
@@ -1,18 +1,17 @@
<!DOCTYPE html>
<title>Request A Bluetooth Device On An Insecure Origin</title>
<script src="/resources/testharness.js"></script>
-<script src="/resources/testharness-helpers.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/get-host-info.js"></script>
<script>
if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pathname;
} else {
- promise_test(function() {
- return assert_promise_rejects(navigator.bluetooth.requestDevice({
- filters: [{services: ['generic_access']}]
- }),
- 'SecurityError');
+ promise_test(function(test) {
+ return promise_rejects(test, 'SecurityError',
+ navigator.bluetooth.requestDevice({
+ filters: [{services: ['generic_access']}]
+ }));
}, "Requires secure context before user gesture");
}
</script>

Powered by Google App Engine
This is Rietveld 408576698