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

Update tests for recent ECMAScript changes #1947

Merged
merged 1 commit into from
Aug 9, 2016

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Aug 2, 2016

Several tests are making outdated assertions about various TypedArray and DataView related functions. Their behavior was changed by TC39 recently.

This PR amends those tests so that either the old or new behavior is accepted. I'm not sure if there's a way to officially mark one behavior as deprecated. This PR doesn't update the snapshots, just the tests under sdk/.

Ping @kenrussell; we discussed this briefly over email a while ago. @littledan @leobalter

@kenrussell
Copy link
Member

Thanks, this looks good. Could you please:

  1. Apply these changes to the 1.0.1, 1.0.2 and 1.0.3 snapshots in the conformance-suites/ top-level directory, run the associated tests, and make sure they pass.
  2. Squash commits and re-upload this pull request, probably using the --force option to "git push" as described in https://www.khronos.org/webgl/wiki/Using_Github_To_Contribute . We'd like to merge a single commit with these changes.

Thanks.

CC'ing @jdashg @RafaelCintron @grorg @zhenyao . The old behavior should be removed in the top-of-tree conformance suite, once all browsers implement the new behavior. I'll file a follow-on bug about this once it lands.

@@ -641,21 +641,27 @@
var array;
try {
array = new type(null);
testFailed("Construction of " + name + " with null buffer should throw exception");
assertEq("Length of " + name + " constructed with null", 0, array.length);
testPassed("Construction of " + name + " with null produced a " + name + "of length 0");
Copy link

Choose a reason for hiding this comment

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

missing a space at the beginning of the last literal in this line

@bakkot
Copy link
Contributor Author

bakkot commented Aug 8, 2016

Done. Both Chrome and Firefox pass on 1.0.1, 1.0.2, and 1.0.3, and Chrome continues to pass (which it did not previously) when updated to use the now-current semantics.

I can't easily test other browsers, but I could do so if necessary.

@kenrussell
Copy link
Member

Thank you very much for updating the older snapshots (so they'll continue to pass on older browsers) and for testing with multiple browsers. The testing you did is great. LGTM. Merging now.

@kenrussell kenrussell merged commit e755776 into KhronosGroup:master Aug 9, 2016
@bakkot bakkot deleted the ecmascript-changes branch August 9, 2016 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants