diff options
author | Mike Pennisi <mike@mikepennisi.com> | 2017-03-04 10:59:52 -0500 |
---|---|---|
committer | Mike Pennisi <mike@mikepennisi.com> | 2017-03-04 12:17:35 -0500 |
commit | f03c2c244cdafa247891b34e9684e5a231a1ca55 (patch) | |
tree | 15ab0a5dade37bd131a572aa4e764a72eb69d4c8 /src/accessor-names | |
parent | da4e798e5bd989521dc1efe627ffa09f253894f6 (diff) | |
download | qtdeclarative-testsuites-f03c2c244cdafa247891b34e9684e5a231a1ca55.tar.gz |
Procedurally generate related tests
Take advantage of a recent extension to the test generation tool in
order to limit duplication.
Diffstat (limited to 'src/accessor-names')
-rw-r--r-- | src/accessor-names/literal-string-line-continuation.case | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/accessor-names/literal-string-line-continuation.case b/src/accessor-names/literal-string-line-continuation.case new file mode 100644 index 000000000..24b2291ac --- /dev/null +++ b/src/accessor-names/literal-string-line-continuation.case @@ -0,0 +1,22 @@ +// Copyright (C) 2017 Mike Pennisi. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +desc: Computed values as accessor property names (string literal containing LineContinuation) +template: default +info: | + 12.2.6.7 Runtime Semantics: Evaluation + + [...] + + ComputedPropertyName : [ AssignmentExpression ] + + 1. Let exprValue be the result of evaluating AssignmentExpression. + 2. Let propName be ? GetValue(exprValue). + 3. Return ? ToPropertyKey(propName). +---*/ + +//- declareWith +'line\ +Continuation' +//- referenceWith +'lineContinuation' |