mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-29 01:49:18 +08:00
update tests
This commit is contained in:
parent
3d92a9d30c
commit
dfc254af51
2
TODO
2
TODO
@ -62,5 +62,5 @@ Optimization ideas:
|
||||
Test262o: 0/11262 errors, 463 excluded
|
||||
Test262o commit: 7da91bceb9ce7613f87db47ddd1292a2dda58b42 (es5-tests branch)
|
||||
|
||||
Result: 58/79349 errors, 1610 excluded, 6649 skipped
|
||||
Result: 46/79341 errors, 1618 excluded, 6649 skipped
|
||||
Test262 commit: 27622d764767dcb3778784884022c2c7de5769b8
|
||||
|
@ -321,6 +321,15 @@ test262/test/staging/sm/Function/function-toString-builtin-name.js
|
||||
test262/test/staging/sm/extensions/arguments-property-access-in-function.js
|
||||
test262/test/staging/sm/extensions/function-caller-skips-eval-frames.js
|
||||
test262/test/staging/sm/extensions/function-properties.js
|
||||
test262/test/staging/sm/regress/regress-577648-1.js
|
||||
test262/test/staging/sm/regress/regress-577648-2.js
|
||||
test262/test/staging/sm/regress/regress-584355.js
|
||||
test262/test/staging/sm/regress/regress-586482-1.js
|
||||
test262/test/staging/sm/regress/regress-586482-2.js
|
||||
test262/test/staging/sm/regress/regress-586482-3.js
|
||||
test262/test/staging/sm/regress/regress-586482-4.js
|
||||
test262/test/staging/sm/regress/regress-699682.js
|
||||
|
||||
# RegExp toSource not fully compliant
|
||||
test262/test/staging/sm/RegExp/toString.js
|
||||
test262/test/staging/sm/RegExp/source.js
|
||||
|
@ -33,7 +33,6 @@ test262/test/staging/sm/class/superPropOrdering.js:83: Error: Assertion failed:
|
||||
test262/test/staging/sm/expressions/short-circuit-compound-assignment-const.js:97: TypeError: 'a' is read-only
|
||||
test262/test/staging/sm/expressions/short-circuit-compound-assignment-tdz.js:23: Error: Assertion failed: expected exception ReferenceError, got TypeError: 'a' is read-only
|
||||
test262/test/staging/sm/extensions/TypedArray-set-object-funky-length-detaches.js:55: RangeError: invalid array length
|
||||
test262/test/staging/sm/extensions/regress-469625-01.js:16: Test262Error: TM: Array prototype and expression closures Expected SameValue(«"TypeError: [].__proto__ is not a function"», «"TypeError: not a function"») to be true
|
||||
test262/test/staging/sm/generators/syntax.js:30: Error: Assertion failed: expected SyntaxError, but no exception thrown - function* g() { (function* yield() {}); }
|
||||
test262/test/staging/sm/lexical-environment/block-scoped-functions-annex-b-arguments.js:14: Test262Error: Expected SameValue(«"object"», «"function"») to be true
|
||||
test262/test/staging/sm/lexical-environment/block-scoped-functions-annex-b-eval.js:12: Test262Error: Expected SameValue(«"outer-gouter-geval-gtruefalseq"», «"outer-geval-gwith-gtruefalseq"») to be true
|
||||
@ -42,15 +41,7 @@ test262/test/staging/sm/lexical-environment/block-scoped-functions-annex-b-notap
|
||||
test262/test/staging/sm/lexical-environment/block-scoped-functions-deprecated-redecl.js:23: Test262Error: Expected SameValue(«3», «4») to be true
|
||||
test262/test/staging/sm/lexical-environment/var-in-catch-body-annex-b-eval.js:17: Test262Error: Expected SameValue(«"g"», «"global-x"») to be true
|
||||
test262/test/staging/sm/object/defineProperties-order.js:14: Test262Error: Expected SameValue(«"ownKeys,getOwnPropertyDescriptor,getOwnPropertyDescriptor,get,get"», «"ownKeys,getOwnPropertyDescriptor,get,getOwnPropertyDescriptor,get"») to be true
|
||||
test262/test/staging/sm/regress/regress-577648-1.js:21: Test262Error: 1 Expected SameValue(«true», «false») to be true
|
||||
test262/test/staging/sm/regress/regress-577648-2.js:14: Test262Error: Expected SameValue(«true», «false») to be true
|
||||
test262/test/staging/sm/regress/regress-584355.js:12: Test262Error: Expected SameValue(«"function f () { ff (); }"», «"undefined"») to be true
|
||||
test262/test/staging/sm/regress/regress-586482-1.js:19: Test262Error: ok Expected SameValue(«true», «false») to be true
|
||||
test262/test/staging/sm/regress/regress-586482-2.js:19: Test262Error: ok Expected SameValue(«true», «false») to be true
|
||||
test262/test/staging/sm/regress/regress-586482-3.js:18: Test262Error: ok Expected SameValue(«true», «false») to be true
|
||||
test262/test/staging/sm/regress/regress-586482-4.js:14: Test262Error: ok Expected SameValue(«function() { this.f(); }», «undefined») to be true
|
||||
test262/test/staging/sm/regress/regress-602621.js:14: Test262Error: function sub-statement must override arguments Expected SameValue(«"function"», «"object"») to be true
|
||||
test262/test/staging/sm/regress/regress-699682.js:15: Test262Error: Expected SameValue(«false», «true») to be true
|
||||
test262/test/staging/sm/regress/regress-1383630.js:30: Error: Assertion failed: expected exception TypeError, no exception thrown
|
||||
test262/test/staging/sm/statements/arrow-function-in-for-statement-head.js:15: Test262Error: expected syntax error, got Error: didn't throw Expected SameValue(«false», «true») to be true
|
||||
test262/test/staging/sm/statements/regress-642975.js:14: Test262Error: Expected SameValue(«undefined», «"y"») to be true
|
||||
|
@ -90,6 +90,43 @@ index c1829e3..3a3ee27 100644
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/test/staging/sm/extensions/regress-469625-01.js b/test/staging/sm/extensions/regress-469625-01.js
|
||||
index 5b62aeb..da07aae 100644
|
||||
--- a/test/staging/sm/extensions/regress-469625-01.js
|
||||
+++ b/test/staging/sm/extensions/regress-469625-01.js
|
||||
@@ -14,8 +14,7 @@ esid: pending
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 469625;
|
||||
var summary = 'TM: Array prototype and expression closures';
|
||||
-var actual = '';
|
||||
-var expect = '';
|
||||
+var actual = null;
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -27,9 +26,6 @@ function test()
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
- expect = 'TypeError: [].__proto__ is not a function';
|
||||
-
|
||||
-
|
||||
Array.prototype.__proto__ = function () { return 3; };
|
||||
|
||||
try
|
||||
@@ -38,8 +34,10 @@ function test()
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
- print(actual = ex + '');
|
||||
+ print(ex + '');
|
||||
+ actual = ex;
|
||||
}
|
||||
|
||||
- assert.sameValue(expect, actual, summary);
|
||||
+ assert.sameValue(actual instanceof TypeError, true);
|
||||
+ assert.sameValue(actual.message.includes("not a function"), true);
|
||||
}
|
||||
diff --git a/test/staging/sm/misc/new-with-non-constructor.js b/test/staging/sm/misc/new-with-non-constructor.js
|
||||
index 18c2f0c..f9aa209 100644
|
||||
--- a/test/staging/sm/misc/new-with-non-constructor.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user