Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Dec 9, 2019

Add new tests for changing base URL, the test
original-base-url-applied-tentative.html changed the document URL, which
only implicitly changed the document's base URL. These tests explicitly
change the document's base URL via the <base> element.

Bug: 984983
Change-Id: I5ab855aaecc8bd12502eb32a3b1d26ae5ced31a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954508
Reviewed-by: Dominic Farolino <[email protected]>
Commit-Queue: Rob Buis <[email protected]>
Cr-Commit-Position: refs/heads/master@{#724964}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@rwlbuis rwlbuis requested a review from annevk December 11, 2019 07:49
@rwlbuis
Copy link
Contributor

rwlbuis commented Dec 11, 2019

@annevk do you think the tests are correct? Currently failing in Chrome and we are not sure if Chrome is wrong or the tests :)

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

From a quick skim this basically looks correct to me, I do have some suggestions/questions though.

});

async_test(function(t) {
below_viewport_img.promise.then(
Copy link
Member

Choose a reason for hiding this comment

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

If you're dealing with a promise, using promise_test and async functions might be nicer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not very familiar with them, would prefer to stick to current approach.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Sure, I recommend finding some time to learn them though as both promise_test (guarantees sequential execution compared to async_test, and looks nice if you're dealing with promises anyway) and async functions (look nice) are pretty great.

@rwlbuis
Copy link
Contributor

rwlbuis commented Dec 12, 2019

Sure, I recommend finding some time to learn them though as both promise_test (guarantees sequential execution compared to async_test, and looks nice if you're dealing with promises anyway) and async functions (look nice) are pretty great.

Ok will look into it :) Thanks for the review.

Copy link
Member

@domfarolino domfarolino left a comment

Choose a reason for hiding this comment

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

Sorry, while finishing this review I realized I should have probably written this up in https://crrev.com/c/1954508. Can you address these over there?

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1954508 branch 3 times, most recently from 6c5ef0b to 506af24 Compare December 15, 2019 06:41
Add new tests for changing base URL, the test
original-base-url-applied-tentative.html changed the document URL, which
only implicitly changed the document's base URL. These tests explicitly
change the document's base URL via the <base> element.

Bug: 984983
Change-Id: I5ab855aaecc8bd12502eb32a3b1d26ae5ced31a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954508
Reviewed-by: Dominic Farolino <[email protected]>
Commit-Queue: Rob Buis <[email protected]>
Cr-Commit-Position: refs/heads/master@{#724964}
Copy link
Member

@domfarolino domfarolino left a comment

Choose a reason for hiding this comment

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

Approving since I've approved on crrev and the CL has landed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants