Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-disabled.php |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-disabled.php b/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-disabled.php |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..acd1857b97a9378fa9368952a6e605502d0e665e |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/vibrate-disabled.php |
| @@ -0,0 +1,26 @@ |
| +<?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> |
| +<html> |
| +<head> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<script> |
| + if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.dumpChildFramesAsText(); |
| + } |
| +</script> |
| +</head> |
| +<iframe id="f1" src="resources/feature-policy-vibrate-disabled.html"> |
|
iclelland
2016/11/23 19:13:03
The HTML spec says that these tags *must* be close
|
| +<iframe id="f2" src="http://localhost:8000/resources/feature-policy-vibrate-disabled.html"> |
| +</html> |