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

Unified Diff: content/test/data/generic_sensor/ambient_light_sensor_test.html

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: rebase + blink reformat 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: content/test/data/generic_sensor/ambient_light_sensor_test.html
diff --git a/content/test/data/generic_sensor/ambient_light_sensor_test.html b/content/test/data/generic_sensor/ambient_light_sensor_test.html
deleted file mode 100644
index 25d46a6a2d3120d991bca1d082105282d524095f..0000000000000000000000000000000000000000
--- a/content/test/data/generic_sensor/ambient_light_sensor_test.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<html>
- <head>
- <title>AmbientLight Generic Sensor test</title>
- <script type="text/javascript">
- var timeOrigin;
- var sensor;
- function onAmbientLightReadingChange() {
- if (sensor.illuminance == 50 &&
- sensor.timestamp > timeOrigin &&
- sensor.timestamp < window.performance.now()) {
- pass();
- } else {
- fail();
- }
- }
-
- function start() {
- sensor = new AmbientLightSensor();
- timeOrigin = window.performance.now();
- sensor.onchange =
- onAmbientLightReadingChange;
- sensor.start();
- }
-
- function pass() {
- document.getElementById('status').innerHTML = 'PASS';
- document.location = '#pass';
- }
-
- function fail() {
- document.location = '#fail';
- }
- </script>
- </head>
- <body onLoad="start()">
- <div id="status">FAIL</div>
- </body>
-</html>
« no previous file with comments | « content/test/BUILD.gn ('k') | third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-revoke.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698