Repository navigation
Conversation
Build BROKENStarted: 2018-03-08 08:55:28 Failing Jobs
View more information about this build on: |
a4907db to
4117ea3
Compare
foolip
left a comment
There was a problem hiding this comment.
IDL LGTM, but needs to be used in a test.
| // extent, this test is a bit special. It should also be possible to | ||
| // run the test manually, when WebDriver is not active, and so either | ||
| // true/false outcome is OK. | ||
| if (navigator.webdriver) { |
There was a problem hiding this comment.
Note that this test is basically "if true, assert true, else assert false" which will only fail when navigator.webdriver is undefined - which is a test that is already covered by the idlarray.add_objects({Navigator: ["navigator"]}) added below.
Hence, since it's confusing, I deleted it.
cc @kereliuk
| <script> | ||
| "use strict"; | ||
|
|
||
| test(() => assert_idl_attribute(navigator, "webdriver"), "navigator.webdriver is present"); |
There was a problem hiding this comment.
assert_idl_attribute is already covered by idlarray.test() below - hence, redundant, and deleted.
|
Now used in a test, PTAL. |
andreastt
left a comment
There was a problem hiding this comment.
This seems to streamline things a bit, and appears to be how other IDLs are tested.
However, I’d like to get the test running before I proceed with a more detailed review. See more comments inline.
| <!doctype html> | ||
| <meta charset=utf-8> | ||
|
|
||
| <link rel="help" href="https://w3c.github.io/webdriver/webdriver-spec.html"> |
There was a problem hiding this comment.
| idls.test(); | ||
| "use strict"; | ||
|
|
||
| promise_test(async () => { |
There was a problem hiding this comment.
I get this when running the test locally:
JavaScript error: file:///home/ato/src/wpt/webdriver/tests/interface.html, line 12: ReferenceError: promise_test is not defined
There was a problem hiding this comment.
Looks like you're trying to run the test from file://. Please run wpt run and use http://web-platform.test:8000/webdriver/tests/interface.html instead.
There was a problem hiding this comment.
That’s not what I want to test. I explicitly want the test to pass when loading it manually with WebDriver disabled.
There was a problem hiding this comment.
Oops, I meant wpt serve. testharness.js tests can't be loaded over file:// is the important point.
There was a problem hiding this comment.
As foolip said, from the wpt root, run ./wpt serve then head to http://localhost:8000/webdriver/tests/interface.html
There was a problem hiding this comment.
Thanks, I can confirm it passes as expected both with and without Marionette enabled in Firefox.
|
Please note that a better commit message would be appreciated next time. |
No description provided.