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

Unified Diff: third_party/WebKit/LayoutTests/sensor/idl-AmbientLightSensorReading.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/idl-AmbientLightSensorReading.html
diff --git a/third_party/WebKit/LayoutTests/sensor/idl-AmbientLightSensorReading.html b/third_party/WebKit/LayoutTests/sensor/idl-AmbientLightSensorReading.html
new file mode 100644
index 0000000000000000000000000000000000000000..f85f4dc0bc57d60c168e7dde298af74f7e928172
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/sensor/idl-AmbientLightSensorReading.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ // Test that AmbientLightSensorReading interface exists
timvolodine 2016/09/19 16:37:32 you could put this test in idl-AmbientLightSensor.
+ assert_true(new AmbientLightSensorReading({illuminance: 1}) instanceof AmbientLightSensorReading);
+}, 'AmbientLightSensorReading IDL test');
+</script>

Powered by Google App Engine
This is Rietveld 408576698