Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML: set location.protocol to non-broken-non-functioning schemes #4502

Merged
merged 3 commits into from
Jan 5, 2017

Conversation

annevk
Copy link
Member

@annevk annevk commented Jan 4, 2017

See whatwg/url#61 for context.

#4412 tests broken
schemes.

@wpt-pr-bot
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot added the html label Jan 4, 2017
@annevk
Copy link
Member Author

annevk commented Jan 4, 2017

The -weird.html is an earlier iteration of the test (excluding data URL tests) that for some reason never completes running in Firefox. I thought I'd include it since it does show differences between the two ways of testing.

@wpt-stability-bot
Copy link

wpt-stability-bot commented Jan 4, 2017

Firefox

Testing revision 4c31b59
Starting 10 test iterations
All results were stable

All results

/html/browsers/history/the-location-interface/location-protocol-setter-non-broken.html
Subtest Results
TIMEOUT
Set HTTP URL frame location.protocol to data FAIL
Set data URL frame location.protocol to gopher TIMEOUT
Set HTTP URL frame location.protocol to file FAIL
Set data URL frame location.protocol to x TIMEOUT
Set HTTP URL frame location.protocol to gopher FAIL
Set HTTP URL frame location.protocol to x FAIL
Set HTTP URL frame location.protocol to http+x FAIL
Set HTTP URL frame location.protocol to ftp PASS
Set data URL frame location.protocol to data TIMEOUT
Set data URL frame location.protocol to file FAIL
Set data URL frame location.protocol to http+x TIMEOUT
Set data URL frame location.protocol to ftp TIMEOUT
/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-weird.html
Subtest Results
OK
Set location.protocol to x FAIL

@wpt-stability-bot
Copy link

wpt-stability-bot commented Jan 4, 2017

Chrome

Testing revision 4c31b59
Starting 10 test iterations
All results were stable

All results

/html/browsers/history/the-location-interface/location-protocol-setter-non-broken.html
Subtest Results
OK
Set HTTP URL frame location.protocol to data FAIL
Set data URL frame location.protocol to gopher PASS
Set HTTP URL frame location.protocol to file FAIL
Set data URL frame location.protocol to x PASS
Set HTTP URL frame location.protocol to gopher PASS
Set HTTP URL frame location.protocol to x PASS
Set HTTP URL frame location.protocol to http+x PASS
Set HTTP URL frame location.protocol to ftp PASS
Set data URL frame location.protocol to data FAIL
Set data URL frame location.protocol to file PASS
Set data URL frame location.protocol to http+x PASS
Set data URL frame location.protocol to ftp FAIL
/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-weird.html
Subtest Results
OK
Set location.protocol to data FAIL
Set location.protocol to ftp PASS
Set location.protocol to file FAIL
Set location.protocol to gopher PASS
Set location.protocol to x PASS
Set location.protocol to http+x PASS

'http+x'
].forEach((val, index) => {
async_test((t) => {
try {
Copy link
Member

Choose a reason for hiding this comment

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

Remove try/catch; testharness.js will catch the exception.

const frame = document.createElement("iframe")
frame.src = "resources/dummy.html"
frame.onload = t.step_func(() => {
try {
Copy link
Member

Choose a reason for hiding this comment

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

Remove

assert_unreached(e)
}
})
})
Copy link
Member

Choose a reason for hiding this comment

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

Include val in the test name

@annevk
Copy link
Member Author

annevk commented Jan 4, 2017

Thanks, pushed fixes.

@annevk annevk merged commit 45869bb into master Jan 5, 2017
@annevk annevk deleted the annevk/location-protocol-non-broken branch January 5, 2017 15:16
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.

None yet

4 participants