Commit be356c96 authored by Mathias Bynens's avatar Mathias Bynens Committed by Commit Bot

Match NavigatorAutomationInformation spec

Context: go/navigator-webdriver-legacyunforgeable

Change-Id: I2f874fc5ed34d7d8c1a03e55965ccb5a11773cef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2556519Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Auto-Submit: Mathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830536}
parent 3a645347
...@@ -7,5 +7,5 @@ ...@@ -7,5 +7,5 @@
[ [
RuntimeEnabled=AutomationControlled RuntimeEnabled=AutomationControlled
] interface mixin NavigatorAutomationInformation { ] interface mixin NavigatorAutomationInformation {
[LegacyUnforgeable] readonly attribute boolean webdriver; readonly attribute boolean webdriver;
}; };
...@@ -20,9 +20,9 @@ test(function() { ...@@ -20,9 +20,9 @@ test(function() {
test(function() { test(function() {
var descriptor = Object.getOwnPropertyDescriptor(navigator, "webdriver"); const descriptor = Object.getOwnPropertyDescriptor(Navigator.prototype, "webdriver");
assert_true(descriptor !== undefined); assert_true(descriptor !== undefined);
assert_false(descriptor.configurable); assert_true(descriptor.configurable);
assert_true(descriptor.enumerable); assert_true(descriptor.enumerable);
assert_true(descriptor.set === undefined); assert_true(descriptor.set === undefined);
}, "Test that the navigator.webdriver descriptor has expected properties"); }, "Test that the navigator.webdriver descriptor has expected properties");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment