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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy-experimental-features/vibrate-allowed-by-container-policy-relocate.html

Issue 2855133004: Re-enable feature policy layout tests after bug fix. (Closed)
Patch Set: Updated fp-vibrate tests expect Created 3 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/feature-policy-experimental-features/vibrate-allowed-by-container-policy-relocate.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy-experimental-features/vibrate-allowed-by-container-policy-relocate.html b/third_party/WebKit/LayoutTests/http/tests/feature-policy-experimental-features/vibrate-allowed-by-container-policy-relocate.html
deleted file mode 100644
index 384bf51a7de7d1a781346a9190acc96c1080110d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/feature-policy-experimental-features/vibrate-allowed-by-container-policy-relocate.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.dumpChildFramesAsText();
-}
-
-function loaded() {
- var iframe = document.getElementById("f1");
- // Relocate iframe f1. Changing iframe.src will reload the document and update
- // the policy.
- iframe.src = "http://localhost:8000/feature-policy-experimental-features/resources/feature-policy-vibrate-enabled.html";
- iframe.addEventListener("load", function() {
- // The iframe uses eventSender to emulate a user navigatation, which
- // requires absolute coordinates.
- iframe.contentWindow.postMessage({x: iframe.offsetLeft, y: iframe.offsetTop}, "*");
- });
-}
-
-// After updating document.location in iframe f2 (note that this does not cause
-// document to reload therefore does not update the policy), use eventSender to
-// triger navigator.vibrate.
-function testVibrate() {
- this.contentWindow.postMessage({x: iframe.offsetLeft, y: iframe.offsetTop}, "*");
-}
-
-</script>
-</head>
-<body onload="loaded()">
-<iframe id="f1" src="about:blank" allow="vibrate"></iframe>
-<iframe id="f2" src="resources/feature-policy-vibrate-relocate.html" onMessage="testVibrate(this)" allow="vibrate"></iframe>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698