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

Unified Diff: third_party/WebKit/LayoutTests/sensor/mock-sensor.html

Issue 2332323002: [sensors] Ambient light sensor bindings implementation (Closed)
Patch Set: Add AmbientLightSensor to the list of expected global interfaces Created 4 years, 3 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/sensor/mock-sensor.html
diff --git a/third_party/WebKit/LayoutTests/sensor/mock-sensor.html b/third_party/WebKit/LayoutTests/sensor/mock-sensor.html
new file mode 100644
index 0000000000000000000000000000000000000000..796831010ae3fc89db70f614a238b171eae54256
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/sensor/mock-sensor.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../resources/mojo-helpers.js"></script>
+<script src="resources/sensor-helpers.js"></script>
+<script>
+
+'use strict';
+
+sensor_test(sensor => {
+ assert_true(sensor instanceof Object);
+ assert_true(sensor.mockSensorProvider instanceof Object);
+}, 'Sensor Mojo bindings and mock interfaces are available to tests.')
+</script>

Powered by Google App Engine
This is Rietveld 408576698