Skip to content

Implementing document.hasFocus method, needs tests. #6475 - #6757

Merged
bors-servo merged 1 commit into
servo:masterfrom
mskrzypkows:document_hasFocus
Aug 11, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
mskrzypkows:document_hasFocus

Conversation

@mskrzypkows

Copy link
Copy Markdown

I'm not sure if I have to implement some test for a new document method. As I remember there were tests for document methods, is it changed now? Where should I add tests?

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 25, 2015
@jdm

jdm commented Jul 25, 2015

Copy link
Copy Markdown
Member

They can be run with ./mach test-wpt tests/wpt/web-platform-tests/html/editing/focus/document-level-focus-apis/document-level-apis.html and ./mach test-wpt tests/wpt/web-platform-tests/html/dom/interfaces.html respectively.

@mskrzypkows

Copy link
Copy Markdown
Author

Thanks, I've added some tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether it's always true that the browser has focus while WPT is running. (Even if it works with the Servo test harness, it might fail for other browsers.) This may be why this test was not included in this file originally. It might be safest to revert this change.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, removed.

@mbrubeck mbrubeck added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 28, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 3, 2015
@mbrubeck

mbrubeck commented Aug 3, 2015

Copy link
Copy Markdown
Contributor

Reviewed 4 of 4 files at r1, 1 of 1 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@mbrubeck

mbrubeck commented Aug 3, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r+

Thanks!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b7a673f has been approved by mbrubeck

@jdm jdm added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 3, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b7a673f with merge 8529b2b...

bors-servo pushed a commit that referenced this pull request Aug 3, 2015
Implementing document.hasFocus method, needs tests. #6475

I'm not sure if I have to implement some test for a new document method. As I remember there were tests for document methods, is it changed now? Where should I add tests?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6757)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac3

@jdm jdm added S-needs-squash Some (or all) of the commits in the PR should be combined. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 3, 2015
@jdm

jdm commented Aug 3, 2015

Copy link
Copy Markdown
Member

The tests that failed are unrelated (so I filed #6930 and #6929), but before we try again could you squash the two commits into one?

@mskrzypkows

Copy link
Copy Markdown
Author

Sorry for the delay, I'll squash them today.

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 10, 2015
@jdm

jdm commented Aug 11, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 07c0cd8 has been approved by jdm

@highfive highfive removed S-awaiting-review There is new code that needs to be reviewed. S-needs-squash Some (or all) of the commits in the PR should be combined. labels Aug 11, 2015
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 11, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 07c0cd8 with merge 0c51585...

bors-servo pushed a commit that referenced this pull request Aug 11, 2015
Implementing document.hasFocus method, needs tests. #6475

I'm not sure if I have to implement some test for a new document method. As I remember there were tests for document methods, is it changed now? Where should I add tests?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6757)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

@bors-servo
bors-servo merged commit 07c0cd8 into servo:master Aug 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants