diff options
author | André Bargull <andre.bargull@gmail.com> | 2017-02-07 17:10:56 +0100 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2017-02-07 11:10:56 -0500 |
commit | 204266794c93dc917008c9db68e34cb9f94db1d2 (patch) | |
tree | 789859851e8435789b14c7a915b6e409cb9bd33a /test/annexB | |
parent | 4203261ba244b2503c482f0fe95a2f29a476e112 (diff) | |
download | qtdeclarative-testsuites-204266794c93dc917008c9db68e34cb9f94db1d2.tar.gz |
Fix various test issues (#840)
test/annexB/built-ins/Date/prototype/setYear/time-clip.js
test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js
test/built-ins/Date/prototype/setMonth/new-value-time-clip.js
- Don't try to test time-clip at the end points, because this is near
impossible to get right (needs to consider time zone offset, dst, local
mean time because of Africa/Monrovia, etc.).
test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js
test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js
- Wasn't update to expect RangeError
test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js
- Change ClassDeclaration -> ClassExpression to get completion value
test/built-ins/Function/prototype/toString/AsyncFunction.js
- Add missing \n in expected string
- Also fixed in gh-847
test/built-ins/global/global-object.js
- Add 'var' to make test pass in strict-mode
test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js
- This is allowed in sloppy mode when Annex B is implemented
test/language/expressions/async-generators/expression-yield-as-statement.js
- Fix calls to then()
test/language/module-code/namespace/internals/own-property-keys-binding-types.js
test/language/module-code/namespace/internals/own-property-keys-sort.js
- Tests weren't updated after removal of @@iterator from module
namespace objects
test/language/module-code/namespace/internals/set-prototype-of-null.js
- Fix syntax error
test/language/statements/async-function/early-errors-no-async-generator.js
- No longer valid now that async iteration proposal is at stage 3
Diffstat (limited to 'test/annexB')
-rw-r--r-- | test/annexB/built-ins/Date/prototype/setYear/time-clip.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/annexB/built-ins/Date/prototype/setYear/time-clip.js b/test/annexB/built-ins/Date/prototype/setYear/time-clip.js index 27352d0e3..c1f0883ea 100644 --- a/test/annexB/built-ins/Date/prototype/setYear/time-clip.js +++ b/test/annexB/built-ins/Date/prototype/setYear/time-clip.js @@ -15,7 +15,7 @@ info: | var date; -date = new Date(1970, 8, 12, 20, 0, 0, 0); +date = new Date(1970, 8, 10, 0, 0, 0, 0); assert.notSameValue( date.setYear(275760), NaN, 'method return value (valid date)' @@ -24,7 +24,7 @@ assert.notSameValue( date.valueOf(), NaN, '[[DateValue]] internal slot (valid date)' ); -date = new Date(1970, 8, 12, 20, 0, 0, 1); +date = new Date(1970, 8, 14, 0, 0, 0, 0); assert.sameValue( date.setYear(275760), NaN, 'method return value (invalid date)' |