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

Side by Side 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW
« 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