Permalink
Browse files

Add querystring test for hasOwnProperty usage

  • Loading branch information...
1 parent 98990b9 commit b3af074a0258aa6694bec8eabfc04d2871be57b9 @isaacs isaacs committed Sep 15, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/simple/test-querystring.js
@@ -49,9 +49,10 @@ var qsTestCases = [
[' foo = bar ', '%20foo%20=%20bar%20', {' foo ': ' bar '}],
['foo=%zx', 'foo=%25zx', {'foo': '%zx'}],
['foo=%EF%BF%BD', 'foo=%EF%BF%BD', {'foo': '\ufffd' }],
- [ 'toString=foo&valueOf=bar&__defineGetter__=baz',
- 'toString=foo&valueOf=bar&__defineGetter__=baz',
- { toString: 'foo',
+ [ 'hasOwnProperty=x&toString=foo&valueOf=bar&__defineGetter__=baz',
+ 'hasOwnProperty=x&toString=foo&valueOf=bar&__defineGetter__=baz',
+ { hasOwnProperty: 'x',
+ toString: 'foo',
valueOf: 'bar',
__defineGetter__: 'baz' } ]
];

0 comments on commit b3af074

Please sign in to comment.