| Index: third_party/WebKit/LayoutTests/navigator_webdriver/navigator_webdriver.html
|
| diff --git a/third_party/WebKit/LayoutTests/navigator_webdriver/navigator_webdriver.html b/third_party/WebKit/LayoutTests/navigator_webdriver/navigator_webdriver.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4d8941439890019de8a41fc6044d03168058d1fc
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/navigator_webdriver/navigator_webdriver.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| +
|
| +test(function() {
|
| + assert_true('webdriver' in window.navigator);
|
| +}, "Test that NavigatorWebDriver API is present in window");
|
| +
|
| +test(function() {
|
| + assert_false(navigator.webdriver);
|
| + var descriptor = Object.getOwnPropertyDescriptor(navigator, "webdriver");
|
| + assert_false(descriptor.configurable);
|
| + assert_true(descriptor.enumerable);
|
| + assert_true(descriptor.set == undefined);
|
| +}, "Test that the webdriver descriptor has expected properties");
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|