Skip to content

HTML: Run a history navigation test in a popup to report a result - #11296

Merged
foolip merged 2 commits into
masterfrom
zcorpan/history-navigation-timeout
Jun 11, 2018
Merged

foolip merged 2 commits into
masterfrom
zcorpan/history-navigation-timeout

Conversation

@zcorpan

@zcorpan zcorpan commented Jun 1, 2018

Copy link
Copy Markdown
Member

Part of #11269.

@zcorpan
zcorpan requested a review from jgraham June 1, 2018 12:08
@wpt-pr-bot wpt-pr-bot added the html label Jun 1, 2018
@wpt-pr-bot
wpt-pr-bot requested review from jdm and zqzhang June 1, 2018 12:08
@zcorpan
zcorpan requested a review from foolip June 6, 2018 12:19

@foolip foolip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM % button indirection

t.add_cleanup(() => {
popupWin.close();
})
document.getElementById('button').click();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why the indirection via a button here? Popup blocking will still be in effect, so just inline all the code here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Just to make it slightly more convenient when running the test manually.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants