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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-disabled.html

Issue 2814153002: Move feature policy vibrate tests to correct directory (Closed)
Patch Set: Update test expect Created 3 years, 8 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/feature-policy/resources/feature-policy-vibrate-disabled.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-disabled.html b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-disabled.html
deleted file mode 100644
index 2fab1c80841af981bda1c4d2188fee1f4b1720e1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-vibrate-disabled.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<head>
- <title>Feature-Policy Vibrate Disabled</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-<script src="/js-test-resources/user-gesture-utils.js"></script>
-<script>
-
-function startTest(event) {
- // Simulates a user click for vibrate to be allowed.
- var element = document.getElementById("test");
- simulateUserClick(element.offsetLeft + event.data.x + 2, element.offsetTop + event.data.y + 2);
-}
-
-function testVibrate() {
- test(function () {
- assert_false(navigator.vibrate(200));
- }, 'No iframe may call navigator.vibrate when disabled.');
-}
-
-window.addEventListener("message", startTest, true);
-</script>
-<body>
-<button id="test" onclick="testVibrate();">Click to vibrate</button>
-

Powered by Google App Engine
This is Rietveld 408576698