| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <script> |
| 7 |
| 8 test(function() { |
| 9 assert_true('webdriver' in window.navigator); |
| 10 }, "Test that NavigatorWebDriver API is present in window"); |
| 11 |
| 12 test(function() { |
| 13 assert_false(navigator.webdriver); |
| 14 var descriptor = Object.getOwnPropertyDescriptor(navigator, "webdriver"); |
| 15 assert_false(descriptor.configurable); |
| 16 assert_true(descriptor.enumerable); |
| 17 assert_true(descriptor.set == undefined); |
| 18 }, "Test that the webdriver descriptor has expected properties"); |
| 19 |
| 20 </script> |
| 21 </body> |
| 22 </html> |
| OLD | NEW |