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

Unified Diff: third_party/WebKit/LayoutTests/navigator_webdriver/navigator_webdriver.html

Issue 2886943007: Introduce NavigatorWebDriver interface
Patch Set: wip: need more tests Created 3 years, 7 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/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>
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/workers/interfaces.idl ('k') | third_party/WebKit/Source/core/core_idl_files.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698