Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/vibrate-enabledforall.php |
| diff --git a/third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/vibrate-enabledforall.php b/third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/vibrate-enabledforall.php |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bc660527f34f9ca03272fd6aac71c9cc9ad1c373 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/vibrate-enabledforall.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 enabled for all works across |
| +// origins. |
| + |
| +Header("Feature-Policy: {\"vibrate\": [\"*\"]}"); |
| +?> |
| + |
| +<!DOCTYPE html> |
| +<script src="../../resources/testharness.js"></script> |
|
iclelland
2016/11/18 04:46:48
Ditto here.
lunalu1
2016/11/23 00:25:03
Done.
|
| +<script src="../../resources/testharnessreport.js"></script> |
| +<html> |
| +<iframe id="f1" src="resources/feature-policy-vibrate-enabledforall.html"> |
| +<iframe id="f2" src="http://localhost:8000/resources/feature-policy-vibrate-enabledforall.html"> |
| +</html> |