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

[js] test order of host callout & typecheck during eval #16301

Merged
merged 4 commits into from
Apr 11, 2019

Conversation

mikesamuel
Copy link
Contributor

This adds tests for tc39/ecma262#1504 which cannot be tested purely in
JavaScript because it involves HostEnsureCanCompileStrings.

As documented in a table on tc39/ecma262#1495 this passes on recent
Chrome and Safari and fails on Firefox so this test probably shouldn't
land right away.

This adds tests for tc39/ecma262#1504 which cannot be tested purely in
JavaScript because it involves HostEnsureCanCompileStrings.

As documented in a table on tc39/ecma262#1495 this passes on recent
Chrome and Safari and fails on Firefox so this test probably shouldn't
land right away.
@jugglinmike
Copy link
Contributor

Mind moving this to the content-security-policy/ directory?

@mikesamuel
Copy link
Contributor Author

@jugglinmike I don't mind at all, but it's testing language in ECMA262, not language in CSP3.

@jugglinmike
Copy link
Contributor

It's kind of defined in both places. Storing the test in content-security-policy more clearly relates the functionality to the web platform, and I'm thinking it makes it more visible for CSP's editors.

Alternatively, you might consider testing this in Test262 via some new host-defined behavior along the same lines as IsHTMLDDA/document.all. I haven't review the semantics, though, so it might not be a good match for this.

@mikesamuel
Copy link
Contributor Author

@jugglinmike Will move it over.

@mikesamuel
Copy link
Contributor Author

@jugglinmike Moved and reworked to follow conventions local to that directory.

@jugglinmike
Copy link
Contributor

@jugglinmike Moved and reworked to follow conventions local to that directory.

Thanks!

As documented in a table on tc39/ecma262#1495 this passes on recent Chrome and Safari and fails on Firefox so this test probably shouldn't land right away.

We can add "do not merge yet" to the pull request, or we could merge it with the ".tentative" file name marker. The latter is less likely to be forgotten, so if this isn't contentious, then that might be best. @mikewest do you have a preference?

@mikewest
Copy link
Member

The test seems accurate to me, assuming tc39/ecma262#1504 lands. I'd be fine with y'all landing these tests now as .tentative, or waiting until that patch lands in ecmascript and landing the patches without that designation. Either way is great!

@mikesamuel
Copy link
Contributor Author

The test is now tentative.

$ git mv content-security-policy/generic/eval-typecheck-callout-order{,.tentative}.html
$ git mv content-security-policy/generic/eval-typecheck-callout-order{,.tentative}.html.headers

Copy link
Contributor

@jugglinmike jugglinmike left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jugglinmike jugglinmike merged commit e3d0146 into web-platform-tests:master Apr 11, 2019
@mikesamuel mikesamuel deleted the eval-check-order branch April 11, 2019 12:44
marcoscaceres pushed a commit that referenced this pull request Jul 23, 2019
* [js] test order of host callout & typecheck during eval

This adds tests for tc39/ecma262#1504 which cannot be tested purely in
JavaScript because it involves HostEnsureCanCompileStrings.

As documented in a table on tc39/ecma262#1495 this passes on recent
Chrome and Safari and fails on Firefox so this test probably shouldn't
land right away.

* Moved test to content-security-policy/generic

I reformatted it to follow the guidance at

https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L37-L60

and moved the `<meta http-equiv=Content-Security-Policy>` content into a separate file per

https://github.com/web-platform-tests/wpt/blob/38f02ed8bb05f69ab4b061d17220f8f46709a0a3/content-security-policy/README.html#L22-L24

* move `<title>` into `<head>`

* Mark new test tentative

... until tc39/ecma262#1495 lands.
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.

5 participants