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

Replaced some simple assert_object_equals cases. #2092

Closed
wants to merge 1 commit into from

Conversation

sideshowbarker
Copy link
Contributor

@sideshowbarker sideshowbarker commented Aug 17, 2015

Part of #2033

@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/5735

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@ayg ayg closed this Aug 28, 2016
@ayg ayg deleted the sideshowbarker/assert_object_equals branch August 28, 2016 13:58
@gsnedders gsnedders restored the sideshowbarker/assert_object_equals branch August 28, 2016 20:19
@gsnedders
Copy link
Member

15:01 < aryehgregor> Um, I might have done something wrong by mistake.
15:01 < aryehgregor> I think I pushed to the wrong repo?

@gsnedders gsnedders reopened this Aug 28, 2016
@ayg ayg closed this Oct 26, 2016
@ayg ayg deleted the sideshowbarker/assert_object_equals branch October 26, 2016 17:37
@ayg
Copy link
Contributor

ayg commented Oct 27, 2016

I can't figure out how to restore the branch at this point, so please re-push it if you still have it locally in case I don't wind up finding a solution. (I deleted it by mistake.)

@sideshowbarker sideshowbarker restored the sideshowbarker/assert_object_equals branch October 27, 2016 11:27
@sideshowbarker
Copy link
Contributor Author

I can't figure out how to restore the branch at this point, so please re-push it if you still have it locally in case I don't wind up finding a solution. (I deleted it by mistake.)

OK, I just pushed it from clone and it looks like this PR is now back into the correct state again

@wpt-stability-bot

This comment has been minimized.

@wpt-stability-bot

This comment has been minimized.

@@ -35,7 +35,7 @@
{test:async_test('regexp'), check:function(e) { assert_equals('' + e.data, '/foo/'); assert_equals(e.data instanceof RegExp, true, 'e.data instanceof RegExp'); }},
{test:async_test('self'), check:function(e) { assert_equals(e.data, null); }},
{test:async_test('array'), check:function(e) { assert_array_equals(e.data, [undefined, null, false, true, 1, NaN, Infinity, 'foo', null, null]); }},
{test:async_test('object'), check:function(e) { assert_object_equals(e.data, {a:undefined, b:null, c:false, d:true, e:1, f:NaN, g:Infinity, h:'foo', k:null, n:null}); }},
{test:async_test('object'), check:function(e) { assert_equals(JSON.stringify(e.data), JSON.stringify({a:undefined, b:null, c:false, d:true, e:1, f:NaN, g:Infinity, h:'foo', k:null, n:null})); }},
Copy link
Member

Choose a reason for hiding this comment

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

Does JSON.stringify have a defined order?

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps it's better to just enumerate the stuff we want to assert?

@foolip
Copy link
Member

foolip commented Jan 7, 2020

@stephenmcgruer here's an open PR in case you missed it in #2033.

@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders gsnedders deleted the sideshowbarker/assert_object_equals branch January 24, 2020 18:07
@gsnedders gsnedders restored the sideshowbarker/assert_object_equals branch January 24, 2020 18:53
@Hexcles Hexcles reopened this Jan 24, 2020
@wpt-pr-bot wpt-pr-bot requested a deployment to wpt-preview-2092 July 15, 2020 07:16 Abandoned
@sideshowbarker sideshowbarker deleted the sideshowbarker/assert_object_equals branch October 2, 2023 17:17
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.

None yet