-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Test that StorageEvent's URL is empty from document.createEvent #15131
Conversation
|
||
test(function() { | ||
assert_equals(document.createEvent('storageevent'), ""); | ||
}, "document.createEvent('storageevent') does not propagate the document's URL.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is oddly specific for such a general test file. It would be more correct to test that for every event type that document.createEvent works, var event2 = new event.constructor(event.type)
yields an event with matching properties (with the exception of timeStamp
which is set every time an event is created).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What you are asking me is way more involved than a simple Servo fix though. Should I file that we don't test that on the WPT repos?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. If you want to add a regression test for this specific fix, please do so in wpt/mozilla instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
<script src="/resources/testharnessreport.js"></script> | ||
<script> | ||
test(function() { | ||
assert_equals(document.createEvent('storageevent'), ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see how this test passes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, probably left uncommitted changes and cleared them... Will fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
This needs to have |
@bors-servo r=jdm |
📌 Commit b2adcfb has been approved by |
Test that StorageEvent's URL is empty from document.createEvent <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15131) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-gnu-dev, windows-msvc-dev |
This change is