OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../resources/testharness.js"></script> | 2 <script src="../resources/testharness.js"></script> |
3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../resources/testharnessreport.js"></script> |
4 <script> | 4 <script> |
5 test(function() { | 5 test(function() { |
6 // Test that Accelerometer interface exists | 6 // Test that Accelerometer interface exists |
7 assert_true('Accelerometer' in window); | 7 assert_true('Accelerometer' in window); |
8 // Test that AccelerometerReading interface exists | 8 }, 'Test that the Accelerometer interface is present'); |
9 assert_true('AccelerometerReading' in window); | |
10 }, 'Test that the Accelerometer and AccelerometerReading interfaces' | |
11 + ' are present.'); | |
12 </script> | 9 </script> |
OLD | NEW |