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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforself.php

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/vibrate-enabledforself.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforself.php b/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforself.php
deleted file mode 100644
index b9abda906ec74ced7a7ad0629c5326e5797496cd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-enabledforself.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This test ensures that navigator.vibrate when enabled for self only works on
-// the same origin.
-
-Header("Feature-Policy: {\"vibrate\": [\"self\"]}");
-?>
-
-<!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 iframes = document.getElementsByTagName('iframe');
- for (var i = 0; i < iframes.length; ++i) {
- var iframe = iframes[i];
- // The iframe uses eventSender to emulate a user navigatation, which requires absolute coordinates.
- iframe.contentWindow.postMessage({x: iframe.offsetLeft, y: iframe.offsetTop}, "*");
- }
-}
-</script>
-</head>
-<body onload="loaded();">
-<iframe id="f1" src="resources/feature-policy-vibrate-enabled.html"></iframe>
-<iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-policy-vibrate-disabled.html"></iframe>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698