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

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

Issue 2492623002: Implementation for feature policy - vibrate. (Closed)
Patch Set: Added layout tests for vibrate with runtime flag turned on Created 4 years, 1 month 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/virtual/feature-policy/http/tests/feature-policy/vibrate-disabled.php
diff --git a/third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/vibrate-disabled.php b/third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/vibrate-disabled.php
new file mode 100644
index 0000000000000000000000000000000000000000..bb91214ca8b214e098d83241bf99ea5c5fad0e6a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/vibrate-disabled.php
@@ -0,0 +1,18 @@
+<?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 disabled may not be called by
+// any iframe.
+
+Header("Feature-Policy: {\"vibrate\": []}");
+?>
+
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
iclelland 2016/11/18 04:46:48 The <script> tags should be inside of <html> (and
lunalu1 2016/11/23 00:25:03 Done.
+<script src="../../resources/testharnessreport.js"></script>
+<html>
+<iframe id="f1" src="resources/feature-policy-vibrate-disabled.html">
+<iframe id="f2" src="http://localhost:8000/resources/feature-policy-vibrate-disabled.html">
+</html>

Powered by Google App Engine
This is Rietveld 408576698