aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-04-08 16:43:10 +0200
committerLars Knoll <lars.knoll@qt.io>2018-05-02 14:18:45 +0000
commit37b85ca10eef7236dbea0decd265c40fa8d0caf1 (patch)
treeed3343cd350dff8aa3be1d471c745775ae523855 /tests
parent360a48aa3f5346aa7aaff741e4ef8f5dc8701f51 (diff)
Add SymbolObject, well known symbols and fix most remaining issues
Added SymbolObject, the equivalent to StringObject which was still missing so far. Added the predefined standard symbols, and fixed most test failures related to symbols. Change-Id: I1e28b439e7c4f5141b4a09bd8fb666c60691f192 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/ecmascripttests/TestExpectations96
1 files changed, 1 insertions, 95 deletions
diff --git a/tests/auto/qml/ecmascripttests/TestExpectations b/tests/auto/qml/ecmascripttests/TestExpectations
index 1dde3a2389..d40e6b07f7 100644
--- a/tests/auto/qml/ecmascripttests/TestExpectations
+++ b/tests/auto/qml/ecmascripttests/TestExpectations
@@ -13,7 +13,6 @@ built-ins/ArrayBuffer/prototype/byteLength/length
built-ins/ArrayBuffer/prototype/byteLength/name
built-ins/ArrayBuffer/prototype/byteLength/prop-desc
built-ins/ArrayBuffer/prototype-from-newtarget
-built-ins/ArrayBuffer/prototype/slice/context-is-not-object
built-ins/ArrayBuffer/prototype/slice/end-default-if-absent
built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined
built-ins/ArrayBuffer/prototype/slice/end-exceeds-length
@@ -21,9 +20,7 @@ built-ins/ArrayBuffer/prototype/slice/negative-end
built-ins/ArrayBuffer/prototype/slice/negative-start
built-ins/ArrayBuffer/prototype/slice/nonconstructor
built-ins/ArrayBuffer/prototype/slice/species
-built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object
built-ins/ArrayBuffer/prototype/slice/species-constructor-is-undefined
-built-ins/ArrayBuffer/prototype/slice/species-is-not-object
built-ins/ArrayBuffer/prototype/slice/species-is-null
built-ins/ArrayBuffer/prototype/slice/species-is-undefined
built-ins/ArrayBuffer/prototype/slice/species-returns-larger-arraybuffer
@@ -424,7 +421,6 @@ built-ins/Atomics/xor/name
built-ins/Atomics/xor/nonshared-int-views
built-ins/Atomics/xor/shared-nonint-views
built-ins/Boolean/proto-from-ctor-realm
-built-ins/Boolean/symbol-coercion
built-ins/DataView/custom-proto-access-throws
built-ins/DataView/custom-proto-if-not-object-fallbacks-to-default-prototype
built-ins/DataView/custom-proto-if-object-is-used
@@ -620,32 +616,6 @@ built-ins/DataView/toindex-byteoffset
built-ins/Date/proto-from-ctor-realm-one
built-ins/Date/proto-from-ctor-realm-two
built-ins/Date/proto-from-ctor-realm-zero
-built-ins/Date/prototype/getDate/this-value-non-object
-built-ins/Date/prototype/getDay/this-value-non-object
-built-ins/Date/prototype/getFullYear/this-value-non-object
-built-ins/Date/prototype/getHours/this-value-non-object
-built-ins/Date/prototype/getMilliseconds/this-value-non-object
-built-ins/Date/prototype/getMinutes/this-value-non-object
-built-ins/Date/prototype/getMonth/this-value-non-object
-built-ins/Date/prototype/getSeconds/this-value-non-object
-built-ins/Date/prototype/getTime/this-value-non-object
-built-ins/Date/prototype/getTimezoneOffset/this-value-non-object
-built-ins/Date/prototype/getUTCDate/this-value-non-object
-built-ins/Date/prototype/getUTCDay/this-value-non-object
-built-ins/Date/prototype/getUTCFullYear/this-value-non-object
-built-ins/Date/prototype/getUTCHours/this-value-non-object
-built-ins/Date/prototype/getUTCMilliseconds/this-value-non-object
-built-ins/Date/prototype/getUTCMinutes/this-value-non-object
-built-ins/Date/prototype/getUTCMonth/this-value-non-object
-built-ins/Date/prototype/getUTCSeconds/this-value-non-object
-built-ins/Date/prototype/setDate/this-value-non-object
-built-ins/Date/prototype/setFullYear/this-value-non-object
-built-ins/Date/prototype/setHours/this-value-non-object
-built-ins/Date/prototype/setMilliseconds/this-value-non-object
-built-ins/Date/prototype/setMinutes/this-value-non-object
-built-ins/Date/prototype/setMonth/this-value-non-object
-built-ins/Date/prototype/setSeconds/this-value-non-object
-built-ins/Date/prototype/setTime/this-value-non-object
built-ins/Date/prototype/Symbol.toPrimitive/hint-default-first-invalid
built-ins/Date/prototype/Symbol.toPrimitive/hint-default-first-non-callable
built-ins/Date/prototype/Symbol.toPrimitive/hint-default-first-valid
@@ -718,7 +688,6 @@ built-ins/Function/prototype/Symbol.hasInstance/prop-desc
built-ins/Function/prototype/Symbol.hasInstance/this-val-bound-target
built-ins/Function/prototype/Symbol.hasInstance/this-val-not-callable
built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype
-built-ins/Function/prototype/Symbol.hasInstance/this-val-prototype-non-obj
built-ins/Function/prototype/Symbol.hasInstance/value-get-prototype-of-err
built-ins/Function/prototype/Symbol.hasInstance/value-negative
built-ins/Function/prototype/Symbol.hasInstance/value-non-obj
@@ -1159,15 +1128,10 @@ built-ins/Number/return-abrupt-tonumber-value-symbol
built-ins/Number/string-binary-literal
built-ins/Number/string-hex-literal-invalid
built-ins/Number/string-octal-literal
-built-ins/Object/assign/Source-Number-Boolen-Symbol
built-ins/Object/assign/source-own-prop-desc-missing
built-ins/Object/assign/source-own-prop-error
built-ins/Object/assign/source-own-prop-keys-error
built-ins/Object/assign/Target-Symbol
-built-ins/Object/defineProperty/symbol-data-property-configurable
-built-ins/Object/defineProperty/symbol-data-property-default-non-strict
-built-ins/Object/defineProperty/symbol-data-property-default-strict
-built-ins/Object/defineProperty/symbol-data-property-writable
built-ins/Object/entries/exception-during-enumeration
built-ins/Object/entries/function-length
built-ins/Object/entries/function-name
@@ -1184,7 +1148,6 @@ built-ins/Object/entries/primitive-symbols
built-ins/Object/entries/symbols-omitted
built-ins/Object/entries/tamper-with-global-object
built-ins/Object/entries/tamper-with-object-keys
-built-ins/Object/freeze/frozen-object-contains-symbol-properties-non-strict
built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187
built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191
built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194
@@ -1249,14 +1212,10 @@ built-ins/Object/is/symbol-object-is-same-value
built-ins/Object/keys/proxy-keys
built-ins/Object/preventExtensions/15.2.3.10-1-1
built-ins/Object/preventExtensions/15.2.3.10-1-2
-built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-non-strict
-built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict
built-ins/Object/proto-from-ctor
-built-ins/Object/prototype/hasOwnProperty/symbol_own_property
built-ins/Object/prototype/hasOwnProperty/symbol_property_toPrimitive
built-ins/Object/prototype/hasOwnProperty/symbol_property_toString
built-ins/Object/prototype/hasOwnProperty/symbol_property_valueOf
-built-ins/Object/prototype/propertyIsEnumerable/symbol_own_property
built-ins/Object/prototype/propertyIsEnumerable/symbol_property_toPrimitive
built-ins/Object/prototype/propertyIsEnumerable/symbol_property_toString
built-ins/Object/prototype/propertyIsEnumerable/symbol_property_valueOf
@@ -1271,14 +1230,12 @@ built-ins/Object/prototype/toString/symbol-tag-override-instances
built-ins/Object/prototype/toString/symbol-tag-override-primitives
built-ins/Object/prototype/toString/symbol-tag-str
built-ins/Object/prototype/valueOf/S15.2.4.4_A14
-built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict
built-ins/Object/setPrototypeOf/length
built-ins/Object/setPrototypeOf/name
built-ins/Object/setPrototypeOf/o-not-obj
built-ins/Object/setPrototypeOf/property-descriptor
built-ins/Object/setPrototypeOf/set-error
built-ins/Object/setPrototypeOf/success
-built-ins/Object/symbol_object-returns-fresh-symbol
built-ins/Object/values/exception-during-enumeration
built-ins/Object/values/function-length
built-ins/Object/values/function-name
@@ -1994,8 +1951,6 @@ built-ins/RegExp/dotall/without-dotall
built-ins/RegExp/dotall/without-dotall-unicode
built-ins/RegExp/from-regexp-like
built-ins/RegExp/from-regexp-like-flag-override
-built-ins/RegExp/from-regexp-like-get-ctor-err
-built-ins/RegExp/from-regexp-like-get-flags-err
built-ins/RegExp/from-regexp-like-get-source-err
built-ins/RegExp/from-regexp-like-short-circuit
built-ins/RegExp/proto-from-ctor-realm
@@ -2025,25 +1980,21 @@ built-ins/RegExp/prototype/global/15.10.7.2-2
built-ins/RegExp/prototype/global/length
built-ins/RegExp/prototype/global/name
built-ins/RegExp/prototype/global/S15.10.7.2_A9
-built-ins/RegExp/prototype/global/this-val-non-obj
built-ins/RegExp/prototype/global/this-val-regexp-prototype
built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2
built-ins/RegExp/prototype/ignoreCase/length
built-ins/RegExp/prototype/ignoreCase/name
built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A9
-built-ins/RegExp/prototype/ignoreCase/this-val-non-obj
built-ins/RegExp/prototype/ignoreCase/this-val-regexp-prototype
built-ins/RegExp/prototype/multiline/15.10.7.4-2
built-ins/RegExp/prototype/multiline/length
built-ins/RegExp/prototype/multiline/name
built-ins/RegExp/prototype/multiline/S15.10.7.4_A9
-built-ins/RegExp/prototype/multiline/this-val-non-obj
built-ins/RegExp/prototype/multiline/this-val-regexp-prototype
built-ins/RegExp/prototype/no-regexp-matcher
built-ins/RegExp/prototype/source/length
built-ins/RegExp/prototype/source/name
built-ins/RegExp/prototype/source/prop-desc
-built-ins/RegExp/prototype/source/this-val-non-obj
built-ins/RegExp/prototype/source/this-val-regexp-prototype
built-ins/RegExp/prototype/source/value-line-terminator
built-ins/RegExp/prototype/source/value-u
@@ -2154,7 +2105,6 @@ built-ins/RegExp/prototype/Symbol.replace/y-set-lastindex
built-ins/RegExp/prototype/Symbol.search/coerce-string
built-ins/RegExp/prototype/Symbol.search/coerce-string-err
built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index
-built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-invalid
built-ins/RegExp/prototype/Symbol.search/failure-return-val
built-ins/RegExp/prototype/Symbol.search/get-lastindex-err
built-ins/RegExp/prototype/Symbol.search/lastindex-no-restore
@@ -2493,7 +2443,6 @@ built-ins/SharedArrayBuffer/toindex-length
built-ins/SharedArrayBuffer/undefined-newtarget-throws
built-ins/SharedArrayBuffer/zero-length
built-ins/String/fromCodePoint/argument-is-not-integer
-built-ins/String/fromCodePoint/argument-is-Symbol
built-ins/String/fromCodePoint/argument-not-coercible
built-ins/String/fromCodePoint/arguments-is-empty
built-ins/String/fromCodePoint/fromCodePoint
@@ -2515,7 +2464,6 @@ built-ins/String/prototype/codePointAt/length
built-ins/String/prototype/codePointAt/name
built-ins/String/prototype/codePointAt/return-abrupt-from-object-pos-to-integer
built-ins/String/prototype/codePointAt/return-abrupt-from-this
-built-ins/String/prototype/codePointAt/return-abrupt-from-this-as-symbol
built-ins/String/prototype/codePointAt/return-code-unit-coerced-position
built-ins/String/prototype/codePointAt/return-first-code-unit
built-ins/String/prototype/codePointAt/return-single-code-unit
@@ -2547,9 +2495,7 @@ built-ins/String/prototype/normalize/return-abrupt-from-this
built-ins/String/prototype/normalize/return-normalized-string
built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form
built-ins/String/prototype/normalize/return-normalized-string-using-default-parameter
-built-ins/String/prototype/padEnd/exception-fill-string-symbol
built-ins/String/prototype/padEnd/exception-not-object-coercible
-built-ins/String/prototype/padEnd/exception-symbol
built-ins/String/prototype/padEnd/fill-string-empty
built-ins/String/prototype/padEnd/fill-string-non-strings
built-ins/String/prototype/padEnd/fill-string-omitted
@@ -2559,9 +2505,7 @@ built-ins/String/prototype/padEnd/function-property-descriptor
built-ins/String/prototype/padEnd/max-length-not-greater-than-string
built-ins/String/prototype/padEnd/normal-operation
built-ins/String/prototype/padEnd/observable-operations
-built-ins/String/prototype/padStart/exception-fill-string-symbol
built-ins/String/prototype/padStart/exception-not-object-coercible
-built-ins/String/prototype/padStart/exception-symbol
built-ins/String/prototype/padStart/fill-string-empty
built-ins/String/prototype/padStart/fill-string-non-strings
built-ins/String/prototype/padStart/fill-string-omitted
@@ -2616,51 +2560,21 @@ built-ins/String/raw/template-length-throws
built-ins/String/raw/template-raw-throws
built-ins/String/raw/template-substitutions-are-appended-on-same-index
built-ins/String/raw/zero-literal-segments
-built-ins/String/symbol-string-coercion
-built-ins/Symbol/auto-boxing-non-strict
-built-ins/Symbol/auto-boxing-strict
-built-ins/Symbol/constructor
built-ins/Symbol/for/cross-realm
built-ins/Symbol/hasInstance/cross-realm
-built-ins/Symbol/hasInstance/prop-desc
built-ins/Symbol/isConcatSpreadable/cross-realm
-built-ins/Symbol/isConcatSpreadable/prop-desc
built-ins/Symbol/iterator/cross-realm
-built-ins/Symbol/iterator/prop-desc
-built-ins/Symbol/keyFor/arg-symbol-registry-miss
built-ins/Symbol/keyFor/cross-realm
-built-ins/Symbol/length
built-ins/Symbol/match/cross-realm
-built-ins/Symbol/match/prop-desc
-built-ins/Symbol/prototype/constructor
-built-ins/Symbol/prototype/intrinsic
-built-ins/Symbol/prototype/Symbol.toPrimitive/length
-built-ins/Symbol/prototype/Symbol.toPrimitive/name
-built-ins/Symbol/prototype/Symbol.toPrimitive/prop-desc
-built-ins/Symbol/prototype/Symbol.toPrimitive/this-val-non-obj
-built-ins/Symbol/prototype/Symbol.toPrimitive/this-val-obj-symbol-wrapper
-built-ins/Symbol/prototype/Symbol.toPrimitive/this-val-symbol
-built-ins/Symbol/prototype/Symbol.toStringTag
-built-ins/Symbol/prototype/toString/toString
-built-ins/Symbol/prototype/toString/undefined
-built-ins/Symbol/prototype/valueOf/this-val-obj-symbol
built-ins/Symbol/replace/cross-realm
-built-ins/Symbol/replace/prop-desc
built-ins/Symbol/search/cross-realm
-built-ins/Symbol/search/prop-desc
-built-ins/Symbol/species/basic
built-ins/Symbol/species/builtin-getter-name
built-ins/Symbol/species/cross-realm
built-ins/Symbol/species/subclassing
built-ins/Symbol/split/cross-realm
-built-ins/Symbol/split/prop-desc
built-ins/Symbol/toPrimitive/cross-realm
-built-ins/Symbol/toPrimitive/prop-desc
built-ins/Symbol/toStringTag/cross-realm
-built-ins/Symbol/toStringTag/prop-desc
-built-ins/Symbol/uniqueness
built-ins/Symbol/unscopables/cross-realm
-built-ins/Symbol/unscopables/prop-desc
built-ins/ThrowTypeError/distinct-cross-realm
built-ins/ThrowTypeError/extensible
built-ins/ThrowTypeError/frozen
@@ -4087,7 +4001,6 @@ language/expressions/assignment/dstr-array-rest-put-unresolvable-strict
language/expressions/assignment/dstr-array-rest-yield-expr
language/expressions/assignment/dstr-array-rest-yield-ident-valid
language/expressions/assignment/dstr-obj-empty-null
-language/expressions/assignment/dstr-obj-empty-symbol
language/expressions/assignment/dstr-obj-empty-undef
language/expressions/assignment/dstr-obj-id-init-fn-name-class
language/expressions/assignment/dstr-obj-id-init-fn-name-gen
@@ -5078,7 +4991,6 @@ language/expressions/compound-assignment/S11.13.2_A7.7_T4
language/expressions/compound-assignment/S11.13.2_A7.8_T4
language/expressions/compound-assignment/S11.13.2_A7.9_T4
language/expressions/conditional/in-branch-1
-language/expressions/conditional/symbol-conditional-evaluation
language/expressions/conditional/tco-cond
language/expressions/conditional/tco-pos
language/expressions/delete/super-property
@@ -5408,10 +5320,7 @@ language/expressions/instanceof/symbol-hasinstance-get-err
language/expressions/instanceof/symbol-hasinstance-invocation
language/expressions/instanceof/symbol-hasinstance-to-boolean
language/expressions/left-shift/order-of-evaluation
-language/expressions/logical-and/symbol-logical-and-evaluation
language/expressions/logical-and/tco-right
-language/expressions/logical-not/symbol-logical-not-evaluation
-language/expressions/logical-or/symbol-logical-or-evaluation
language/expressions/logical-or/tco-right
language/expressions/modulus/order-of-evaluation
language/expressions/multiplication/order-of-evaluation
@@ -5932,7 +5841,6 @@ language/expressions/template-literal/tv-template-tail
language/expressions/template-literal/tv-utf16-escape-sequence
language/expressions/template-literal/tv-zwnbsp
language/expressions/typeof/built-in-ordinary-objects-no-call
-language/expressions/typeof/symbol
language/expressions/unsigned-right-shift/order-of-evaluation
language/expressions/yield/arguments-object-attributes
language/expressions/yield/captured-free-vars
@@ -6015,7 +5923,6 @@ language/global-code/script-decl-var-collision
language/global-code/script-decl-var-err
language/global-code/switch-case-decl-strict
language/global-code/switch-dflt-decl-strict
-language/global-code/unscopables-ignored
language/identifiers/other_id_continue
language/identifiers/other_id_start
language/identifiers/other_id_start-escaped
@@ -8529,7 +8436,6 @@ language/statements/with/has-property-err
language/statements/with/let-block-with-newline
language/statements/with/let-identifier-with-newline
language/statements/with/unscopables-inc-dec
-language/types/reference/get-value-prop-base-primitive
language/types/reference/get-value-prop-base-primitive-realm
language/types/reference/put-value-prop-base-primitive
language/types/reference/put-value-prop-base-primitive-realm
@@ -8552,4 +8458,4 @@ language/global-code/decl-lex-restricted-global
language/statements/const/global-use-before-initialization-in-declaration-statement
language/statements/const/global-use-before-initialization-in-prior-statement
language/statements/let/global-use-before-initialization-in-declaration-statement
-language/statements/let/global-use-before-initialization-in-prior-statement \ No newline at end of file
+language/statements/let/global-use-before-initialization-in-prior-statement