diff options
author | Leonardo Balter <leonardo.balter@gmail.com> | 2015-07-28 16:03:14 -0400 |
---|---|---|
committer | Leonardo Balter <leonardo.balter@gmail.com> | 2015-09-04 13:33:09 -0400 |
commit | 980e50441fa6799b766728ce4ecdac7aec3f13f4 (patch) | |
tree | 40e9b2f9f5616a9b5fb8ae0ea01cc2560ec4f782 /test/built-ins/Reflect/construct/length.js | |
parent | bdcf4fd877e1bf5891778d48fd961cb43cc5a48d (diff) | |
download | qtdeclarative-testsuites-980e50441fa6799b766728ce4ecdac7aec3f13f4.tar.gz |
Add tests for Reflect.construct
Diffstat (limited to 'test/built-ins/Reflect/construct/length.js')
-rw-r--r-- | test/built-ins/Reflect/construct/length.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/built-ins/Reflect/construct/length.js b/test/built-ins/Reflect/construct/length.js new file mode 100644 index 000000000..94c2b63e5 --- /dev/null +++ b/test/built-ins/Reflect/construct/length.js @@ -0,0 +1,21 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 26.1.2 +description: > + Reflect.construct.length value and property descriptor +info: > + 26.1.2 Reflect.construct ( target, argumentsList [, newTarget] ) + + The length property of the construct function is 2. +includes: [propertyHelper.js] +---*/ + +assert.sameValue( + Reflect.construct.length, 2, + 'The value of `Reflect.construct.length` is `2`' +); + +verifyNotEnumerable(Reflect.construct, 'length'); +verifyNotWritable(Reflect.construct, 'length'); +verifyConfigurable(Reflect.construct, 'length'); |