From 5e3eed63b9a3f17d4129a2fbacfc5ce5604b0426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 15 Jan 2016 18:11:03 +0100 Subject: [PATCH 1/6] Move Symbol.species and AnnexB tests to new subfolders --- test/annexB/{ => Date/prototype/getYear}/B.2.4.js | 0 test/annexB/{ => Date/prototype/getYear}/B.2.4.propertyCheck.js | 0 test/annexB/{ => Date/prototype/setYear}/B.2.5.js | 0 test/annexB/{ => Date/prototype/setYear}/B.2.5.propertyCheck.js | 0 test/annexB/{ => Date/prototype/toGMTString}/B.2.6.js | 0 .../{ => Date/prototype/toGMTString}/B.2.6.propertyCheck.js | 0 test/annexB/{ => Object/prototype/__proto__}/B.2.2.1.1.js | 0 test/annexB/{ => Object/prototype/__proto__}/B.2.2.1.2.js | 0 test/annexB/{ => RegExp}/RegExp-control-escape-russian-letter.js | 0 test/annexB/{ => RegExp}/RegExp-decimal-escape-class-range.js | 0 test/annexB/{ => RegExp}/RegExp-decimal-escape-not-capturing.js | 0 test/annexB/{ => RegExp}/RegExp-leading-escape-BMP.js | 0 test/annexB/{ => RegExp}/RegExp-leading-escape.js | 0 test/annexB/{ => RegExp}/RegExp-trailing-escape-BMP.js | 0 test/annexB/{ => RegExp}/RegExp-trailing-escape.js | 0 .../{ => RegExp/prototype/compile}/B.RegExp.prototype.compile.js | 0 test/annexB/{ => String/prototype/anchor}/B.2.3.2.js | 0 test/annexB/{ => String/prototype/big}/B.2.3.3.js | 0 test/annexB/{ => String/prototype/blink}/B.2.3.4.js | 0 test/annexB/{ => String/prototype/bold}/B.2.3.5.js | 0 test/annexB/{ => String/prototype/fixed}/B.2.3.6.js | 0 test/annexB/{ => String/prototype/fontcolor}/B.2.3.7.js | 0 test/annexB/{ => String/prototype/fontsize}/B.2.3.8.js | 0 test/annexB/{ => String/prototype/italics}/B.2.3.9.js | 0 test/annexB/{ => String/prototype/link}/B.2.3.10.js | 0 test/annexB/{ => String/prototype/small}/B.2.3.11.js | 0 test/annexB/{ => String/prototype/strike}/B.2.3.12.js | 0 test/annexB/{ => String/prototype/sub}/B.2.3.13.js | 0 test/annexB/{ => String/prototype/substr}/B.2.3.js | 0 test/annexB/{ => String/prototype/sup}/B.2.3.14.js | 0 test/annexB/{ => global/escape}/B.2.1.js | 0 test/annexB/{ => global/escape}/B.2.1.propertyCheck.js | 0 test/annexB/{ => global/unescape}/B.2.2.js | 0 test/annexB/{ => global/unescape}/B.2.2.propertyCheck.js | 0 test/built-ins/Array/{ => Symbol.species}/symbol-species-name.js | 0 test/built-ins/Array/{ => Symbol.species}/symbol-species.js | 0 .../ArrayBuffer/{ => Symbol.species}/symbol-species-name.js | 0 test/built-ins/ArrayBuffer/{ => Symbol.species}/symbol-species.js | 0 test/built-ins/Map/{ => Symbol.species}/symbol-species-name.js | 0 test/built-ins/Map/{ => Symbol.species}/symbol-species.js | 0 .../{Error => NativeErrors}/message_property_native_error.js | 0 .../built-ins/Promise/{ => Symbol.species}/symbol-species-name.js | 0 test/built-ins/Promise/{ => Symbol.species}/symbol-species.js | 0 test/built-ins/RegExp/{ => Symbol.species}/symbol-species-name.js | 0 test/built-ins/RegExp/{ => Symbol.species}/symbol-species.js | 0 test/built-ins/Set/{ => Symbol.species}/symbol-species-name.js | 0 test/built-ins/Set/{ => Symbol.species}/symbol-species.js | 0 47 files changed, 0 insertions(+), 0 deletions(-) rename test/annexB/{ => Date/prototype/getYear}/B.2.4.js (100%) rename test/annexB/{ => Date/prototype/getYear}/B.2.4.propertyCheck.js (100%) rename test/annexB/{ => Date/prototype/setYear}/B.2.5.js (100%) rename test/annexB/{ => Date/prototype/setYear}/B.2.5.propertyCheck.js (100%) rename test/annexB/{ => Date/prototype/toGMTString}/B.2.6.js (100%) rename test/annexB/{ => Date/prototype/toGMTString}/B.2.6.propertyCheck.js (100%) rename test/annexB/{ => Object/prototype/__proto__}/B.2.2.1.1.js (100%) rename test/annexB/{ => Object/prototype/__proto__}/B.2.2.1.2.js (100%) rename test/annexB/{ => RegExp}/RegExp-control-escape-russian-letter.js (100%) rename test/annexB/{ => RegExp}/RegExp-decimal-escape-class-range.js (100%) rename test/annexB/{ => RegExp}/RegExp-decimal-escape-not-capturing.js (100%) rename test/annexB/{ => RegExp}/RegExp-leading-escape-BMP.js (100%) rename test/annexB/{ => RegExp}/RegExp-leading-escape.js (100%) rename test/annexB/{ => RegExp}/RegExp-trailing-escape-BMP.js (100%) rename test/annexB/{ => RegExp}/RegExp-trailing-escape.js (100%) rename test/annexB/{ => RegExp/prototype/compile}/B.RegExp.prototype.compile.js (100%) rename test/annexB/{ => String/prototype/anchor}/B.2.3.2.js (100%) rename test/annexB/{ => String/prototype/big}/B.2.3.3.js (100%) rename test/annexB/{ => String/prototype/blink}/B.2.3.4.js (100%) rename test/annexB/{ => String/prototype/bold}/B.2.3.5.js (100%) rename test/annexB/{ => String/prototype/fixed}/B.2.3.6.js (100%) rename test/annexB/{ => String/prototype/fontcolor}/B.2.3.7.js (100%) rename test/annexB/{ => String/prototype/fontsize}/B.2.3.8.js (100%) rename test/annexB/{ => String/prototype/italics}/B.2.3.9.js (100%) rename test/annexB/{ => String/prototype/link}/B.2.3.10.js (100%) rename test/annexB/{ => String/prototype/small}/B.2.3.11.js (100%) rename test/annexB/{ => String/prototype/strike}/B.2.3.12.js (100%) rename test/annexB/{ => String/prototype/sub}/B.2.3.13.js (100%) rename test/annexB/{ => String/prototype/substr}/B.2.3.js (100%) rename test/annexB/{ => String/prototype/sup}/B.2.3.14.js (100%) rename test/annexB/{ => global/escape}/B.2.1.js (100%) rename test/annexB/{ => global/escape}/B.2.1.propertyCheck.js (100%) rename test/annexB/{ => global/unescape}/B.2.2.js (100%) rename test/annexB/{ => global/unescape}/B.2.2.propertyCheck.js (100%) rename test/built-ins/Array/{ => Symbol.species}/symbol-species-name.js (100%) rename test/built-ins/Array/{ => Symbol.species}/symbol-species.js (100%) rename test/built-ins/ArrayBuffer/{ => Symbol.species}/symbol-species-name.js (100%) rename test/built-ins/ArrayBuffer/{ => Symbol.species}/symbol-species.js (100%) rename test/built-ins/Map/{ => Symbol.species}/symbol-species-name.js (100%) rename test/built-ins/Map/{ => Symbol.species}/symbol-species.js (100%) rename test/built-ins/{Error => NativeErrors}/message_property_native_error.js (100%) rename test/built-ins/Promise/{ => Symbol.species}/symbol-species-name.js (100%) rename test/built-ins/Promise/{ => Symbol.species}/symbol-species.js (100%) rename test/built-ins/RegExp/{ => Symbol.species}/symbol-species-name.js (100%) rename test/built-ins/RegExp/{ => Symbol.species}/symbol-species.js (100%) rename test/built-ins/Set/{ => Symbol.species}/symbol-species-name.js (100%) rename test/built-ins/Set/{ => Symbol.species}/symbol-species.js (100%) diff --git a/test/annexB/B.2.4.js b/test/annexB/Date/prototype/getYear/B.2.4.js similarity index 100% rename from test/annexB/B.2.4.js rename to test/annexB/Date/prototype/getYear/B.2.4.js diff --git a/test/annexB/B.2.4.propertyCheck.js b/test/annexB/Date/prototype/getYear/B.2.4.propertyCheck.js similarity index 100% rename from test/annexB/B.2.4.propertyCheck.js rename to test/annexB/Date/prototype/getYear/B.2.4.propertyCheck.js diff --git a/test/annexB/B.2.5.js b/test/annexB/Date/prototype/setYear/B.2.5.js similarity index 100% rename from test/annexB/B.2.5.js rename to test/annexB/Date/prototype/setYear/B.2.5.js diff --git a/test/annexB/B.2.5.propertyCheck.js b/test/annexB/Date/prototype/setYear/B.2.5.propertyCheck.js similarity index 100% rename from test/annexB/B.2.5.propertyCheck.js rename to test/annexB/Date/prototype/setYear/B.2.5.propertyCheck.js diff --git a/test/annexB/B.2.6.js b/test/annexB/Date/prototype/toGMTString/B.2.6.js similarity index 100% rename from test/annexB/B.2.6.js rename to test/annexB/Date/prototype/toGMTString/B.2.6.js diff --git a/test/annexB/B.2.6.propertyCheck.js b/test/annexB/Date/prototype/toGMTString/B.2.6.propertyCheck.js similarity index 100% rename from test/annexB/B.2.6.propertyCheck.js rename to test/annexB/Date/prototype/toGMTString/B.2.6.propertyCheck.js diff --git a/test/annexB/B.2.2.1.1.js b/test/annexB/Object/prototype/__proto__/B.2.2.1.1.js similarity index 100% rename from test/annexB/B.2.2.1.1.js rename to test/annexB/Object/prototype/__proto__/B.2.2.1.1.js diff --git a/test/annexB/B.2.2.1.2.js b/test/annexB/Object/prototype/__proto__/B.2.2.1.2.js similarity index 100% rename from test/annexB/B.2.2.1.2.js rename to test/annexB/Object/prototype/__proto__/B.2.2.1.2.js diff --git a/test/annexB/RegExp-control-escape-russian-letter.js b/test/annexB/RegExp/RegExp-control-escape-russian-letter.js similarity index 100% rename from test/annexB/RegExp-control-escape-russian-letter.js rename to test/annexB/RegExp/RegExp-control-escape-russian-letter.js diff --git a/test/annexB/RegExp-decimal-escape-class-range.js b/test/annexB/RegExp/RegExp-decimal-escape-class-range.js similarity index 100% rename from test/annexB/RegExp-decimal-escape-class-range.js rename to test/annexB/RegExp/RegExp-decimal-escape-class-range.js diff --git a/test/annexB/RegExp-decimal-escape-not-capturing.js b/test/annexB/RegExp/RegExp-decimal-escape-not-capturing.js similarity index 100% rename from test/annexB/RegExp-decimal-escape-not-capturing.js rename to test/annexB/RegExp/RegExp-decimal-escape-not-capturing.js diff --git a/test/annexB/RegExp-leading-escape-BMP.js b/test/annexB/RegExp/RegExp-leading-escape-BMP.js similarity index 100% rename from test/annexB/RegExp-leading-escape-BMP.js rename to test/annexB/RegExp/RegExp-leading-escape-BMP.js diff --git a/test/annexB/RegExp-leading-escape.js b/test/annexB/RegExp/RegExp-leading-escape.js similarity index 100% rename from test/annexB/RegExp-leading-escape.js rename to test/annexB/RegExp/RegExp-leading-escape.js diff --git a/test/annexB/RegExp-trailing-escape-BMP.js b/test/annexB/RegExp/RegExp-trailing-escape-BMP.js similarity index 100% rename from test/annexB/RegExp-trailing-escape-BMP.js rename to test/annexB/RegExp/RegExp-trailing-escape-BMP.js diff --git a/test/annexB/RegExp-trailing-escape.js b/test/annexB/RegExp/RegExp-trailing-escape.js similarity index 100% rename from test/annexB/RegExp-trailing-escape.js rename to test/annexB/RegExp/RegExp-trailing-escape.js diff --git a/test/annexB/B.RegExp.prototype.compile.js b/test/annexB/RegExp/prototype/compile/B.RegExp.prototype.compile.js similarity index 100% rename from test/annexB/B.RegExp.prototype.compile.js rename to test/annexB/RegExp/prototype/compile/B.RegExp.prototype.compile.js diff --git a/test/annexB/B.2.3.2.js b/test/annexB/String/prototype/anchor/B.2.3.2.js similarity index 100% rename from test/annexB/B.2.3.2.js rename to test/annexB/String/prototype/anchor/B.2.3.2.js diff --git a/test/annexB/B.2.3.3.js b/test/annexB/String/prototype/big/B.2.3.3.js similarity index 100% rename from test/annexB/B.2.3.3.js rename to test/annexB/String/prototype/big/B.2.3.3.js diff --git a/test/annexB/B.2.3.4.js b/test/annexB/String/prototype/blink/B.2.3.4.js similarity index 100% rename from test/annexB/B.2.3.4.js rename to test/annexB/String/prototype/blink/B.2.3.4.js diff --git a/test/annexB/B.2.3.5.js b/test/annexB/String/prototype/bold/B.2.3.5.js similarity index 100% rename from test/annexB/B.2.3.5.js rename to test/annexB/String/prototype/bold/B.2.3.5.js diff --git a/test/annexB/B.2.3.6.js b/test/annexB/String/prototype/fixed/B.2.3.6.js similarity index 100% rename from test/annexB/B.2.3.6.js rename to test/annexB/String/prototype/fixed/B.2.3.6.js diff --git a/test/annexB/B.2.3.7.js b/test/annexB/String/prototype/fontcolor/B.2.3.7.js similarity index 100% rename from test/annexB/B.2.3.7.js rename to test/annexB/String/prototype/fontcolor/B.2.3.7.js diff --git a/test/annexB/B.2.3.8.js b/test/annexB/String/prototype/fontsize/B.2.3.8.js similarity index 100% rename from test/annexB/B.2.3.8.js rename to test/annexB/String/prototype/fontsize/B.2.3.8.js diff --git a/test/annexB/B.2.3.9.js b/test/annexB/String/prototype/italics/B.2.3.9.js similarity index 100% rename from test/annexB/B.2.3.9.js rename to test/annexB/String/prototype/italics/B.2.3.9.js diff --git a/test/annexB/B.2.3.10.js b/test/annexB/String/prototype/link/B.2.3.10.js similarity index 100% rename from test/annexB/B.2.3.10.js rename to test/annexB/String/prototype/link/B.2.3.10.js diff --git a/test/annexB/B.2.3.11.js b/test/annexB/String/prototype/small/B.2.3.11.js similarity index 100% rename from test/annexB/B.2.3.11.js rename to test/annexB/String/prototype/small/B.2.3.11.js diff --git a/test/annexB/B.2.3.12.js b/test/annexB/String/prototype/strike/B.2.3.12.js similarity index 100% rename from test/annexB/B.2.3.12.js rename to test/annexB/String/prototype/strike/B.2.3.12.js diff --git a/test/annexB/B.2.3.13.js b/test/annexB/String/prototype/sub/B.2.3.13.js similarity index 100% rename from test/annexB/B.2.3.13.js rename to test/annexB/String/prototype/sub/B.2.3.13.js diff --git a/test/annexB/B.2.3.js b/test/annexB/String/prototype/substr/B.2.3.js similarity index 100% rename from test/annexB/B.2.3.js rename to test/annexB/String/prototype/substr/B.2.3.js diff --git a/test/annexB/B.2.3.14.js b/test/annexB/String/prototype/sup/B.2.3.14.js similarity index 100% rename from test/annexB/B.2.3.14.js rename to test/annexB/String/prototype/sup/B.2.3.14.js diff --git a/test/annexB/B.2.1.js b/test/annexB/global/escape/B.2.1.js similarity index 100% rename from test/annexB/B.2.1.js rename to test/annexB/global/escape/B.2.1.js diff --git a/test/annexB/B.2.1.propertyCheck.js b/test/annexB/global/escape/B.2.1.propertyCheck.js similarity index 100% rename from test/annexB/B.2.1.propertyCheck.js rename to test/annexB/global/escape/B.2.1.propertyCheck.js diff --git a/test/annexB/B.2.2.js b/test/annexB/global/unescape/B.2.2.js similarity index 100% rename from test/annexB/B.2.2.js rename to test/annexB/global/unescape/B.2.2.js diff --git a/test/annexB/B.2.2.propertyCheck.js b/test/annexB/global/unescape/B.2.2.propertyCheck.js similarity index 100% rename from test/annexB/B.2.2.propertyCheck.js rename to test/annexB/global/unescape/B.2.2.propertyCheck.js diff --git a/test/built-ins/Array/symbol-species-name.js b/test/built-ins/Array/Symbol.species/symbol-species-name.js similarity index 100% rename from test/built-ins/Array/symbol-species-name.js rename to test/built-ins/Array/Symbol.species/symbol-species-name.js diff --git a/test/built-ins/Array/symbol-species.js b/test/built-ins/Array/Symbol.species/symbol-species.js similarity index 100% rename from test/built-ins/Array/symbol-species.js rename to test/built-ins/Array/Symbol.species/symbol-species.js diff --git a/test/built-ins/ArrayBuffer/symbol-species-name.js b/test/built-ins/ArrayBuffer/Symbol.species/symbol-species-name.js similarity index 100% rename from test/built-ins/ArrayBuffer/symbol-species-name.js rename to test/built-ins/ArrayBuffer/Symbol.species/symbol-species-name.js diff --git a/test/built-ins/ArrayBuffer/symbol-species.js b/test/built-ins/ArrayBuffer/Symbol.species/symbol-species.js similarity index 100% rename from test/built-ins/ArrayBuffer/symbol-species.js rename to test/built-ins/ArrayBuffer/Symbol.species/symbol-species.js diff --git a/test/built-ins/Map/symbol-species-name.js b/test/built-ins/Map/Symbol.species/symbol-species-name.js similarity index 100% rename from test/built-ins/Map/symbol-species-name.js rename to test/built-ins/Map/Symbol.species/symbol-species-name.js diff --git a/test/built-ins/Map/symbol-species.js b/test/built-ins/Map/Symbol.species/symbol-species.js similarity index 100% rename from test/built-ins/Map/symbol-species.js rename to test/built-ins/Map/Symbol.species/symbol-species.js diff --git a/test/built-ins/Error/message_property_native_error.js b/test/built-ins/NativeErrors/message_property_native_error.js similarity index 100% rename from test/built-ins/Error/message_property_native_error.js rename to test/built-ins/NativeErrors/message_property_native_error.js diff --git a/test/built-ins/Promise/symbol-species-name.js b/test/built-ins/Promise/Symbol.species/symbol-species-name.js similarity index 100% rename from test/built-ins/Promise/symbol-species-name.js rename to test/built-ins/Promise/Symbol.species/symbol-species-name.js diff --git a/test/built-ins/Promise/symbol-species.js b/test/built-ins/Promise/Symbol.species/symbol-species.js similarity index 100% rename from test/built-ins/Promise/symbol-species.js rename to test/built-ins/Promise/Symbol.species/symbol-species.js diff --git a/test/built-ins/RegExp/symbol-species-name.js b/test/built-ins/RegExp/Symbol.species/symbol-species-name.js similarity index 100% rename from test/built-ins/RegExp/symbol-species-name.js rename to test/built-ins/RegExp/Symbol.species/symbol-species-name.js diff --git a/test/built-ins/RegExp/symbol-species.js b/test/built-ins/RegExp/Symbol.species/symbol-species.js similarity index 100% rename from test/built-ins/RegExp/symbol-species.js rename to test/built-ins/RegExp/Symbol.species/symbol-species.js diff --git a/test/built-ins/Set/symbol-species-name.js b/test/built-ins/Set/Symbol.species/symbol-species-name.js similarity index 100% rename from test/built-ins/Set/symbol-species-name.js rename to test/built-ins/Set/Symbol.species/symbol-species-name.js diff --git a/test/built-ins/Set/symbol-species.js b/test/built-ins/Set/Symbol.species/symbol-species.js similarity index 100% rename from test/built-ins/Set/symbol-species.js rename to test/built-ins/Set/Symbol.species/symbol-species.js From bb1bda6dfd83b0b1d30a5b8020c72cc2b1d892fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 15 Jan 2016 18:11:38 +0100 Subject: [PATCH 2/6] Add missing tests for "length" and "name" properties of AnnexB built-in functions --- test/annexB/Date/prototype/getYear/length.js | 29 +++++++++++++++++++ test/annexB/Date/prototype/getYear/name.js | 26 +++++++++++++++++ test/annexB/Date/prototype/setYear/length.js | 29 +++++++++++++++++++ test/annexB/Date/prototype/setYear/name.js | 26 +++++++++++++++++ .../Date/prototype/toGMTString/length.js | 29 +++++++++++++++++++ .../annexB/Date/prototype/toGMTString/name.js | 26 +++++++++++++++++ .../annexB/RegExp/prototype/compile/length.js | 29 +++++++++++++++++++ test/annexB/RegExp/prototype/compile/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/anchor/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/anchor/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/big/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/big/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/blink/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/blink/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/bold/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/bold/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/fixed/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/fixed/name.js | 26 +++++++++++++++++ .../String/prototype/fontcolor/length.js | 29 +++++++++++++++++++ .../annexB/String/prototype/fontcolor/name.js | 26 +++++++++++++++++ .../String/prototype/fontsize/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/fontsize/name.js | 26 +++++++++++++++++ .../annexB/String/prototype/italics/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/italics/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/link/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/link/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/small/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/small/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/strike/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/strike/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/sub/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/sub/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/substr/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/substr/name.js | 26 +++++++++++++++++ test/annexB/String/prototype/sup/length.js | 29 +++++++++++++++++++ test/annexB/String/prototype/sup/name.js | 26 +++++++++++++++++ test/annexB/global/escape/length.js | 29 +++++++++++++++++++ test/annexB/global/escape/name.js | 26 +++++++++++++++++ test/annexB/global/unescape/length.js | 29 +++++++++++++++++++ test/annexB/global/unescape/name.js | 26 +++++++++++++++++ 40 files changed, 1100 insertions(+) create mode 100755 test/annexB/Date/prototype/getYear/length.js create mode 100755 test/annexB/Date/prototype/getYear/name.js create mode 100755 test/annexB/Date/prototype/setYear/length.js create mode 100755 test/annexB/Date/prototype/setYear/name.js create mode 100755 test/annexB/Date/prototype/toGMTString/length.js create mode 100755 test/annexB/Date/prototype/toGMTString/name.js create mode 100755 test/annexB/RegExp/prototype/compile/length.js create mode 100755 test/annexB/RegExp/prototype/compile/name.js create mode 100755 test/annexB/String/prototype/anchor/length.js create mode 100755 test/annexB/String/prototype/anchor/name.js create mode 100755 test/annexB/String/prototype/big/length.js create mode 100755 test/annexB/String/prototype/big/name.js create mode 100755 test/annexB/String/prototype/blink/length.js create mode 100755 test/annexB/String/prototype/blink/name.js create mode 100755 test/annexB/String/prototype/bold/length.js create mode 100755 test/annexB/String/prototype/bold/name.js create mode 100755 test/annexB/String/prototype/fixed/length.js create mode 100755 test/annexB/String/prototype/fixed/name.js create mode 100755 test/annexB/String/prototype/fontcolor/length.js create mode 100755 test/annexB/String/prototype/fontcolor/name.js create mode 100755 test/annexB/String/prototype/fontsize/length.js create mode 100755 test/annexB/String/prototype/fontsize/name.js create mode 100755 test/annexB/String/prototype/italics/length.js create mode 100755 test/annexB/String/prototype/italics/name.js create mode 100755 test/annexB/String/prototype/link/length.js create mode 100755 test/annexB/String/prototype/link/name.js create mode 100755 test/annexB/String/prototype/small/length.js create mode 100755 test/annexB/String/prototype/small/name.js create mode 100755 test/annexB/String/prototype/strike/length.js create mode 100755 test/annexB/String/prototype/strike/name.js create mode 100755 test/annexB/String/prototype/sub/length.js create mode 100755 test/annexB/String/prototype/sub/name.js create mode 100755 test/annexB/String/prototype/substr/length.js create mode 100755 test/annexB/String/prototype/substr/name.js create mode 100755 test/annexB/String/prototype/sup/length.js create mode 100755 test/annexB/String/prototype/sup/name.js create mode 100755 test/annexB/global/escape/length.js create mode 100755 test/annexB/global/escape/name.js create mode 100755 test/annexB/global/unescape/length.js create mode 100755 test/annexB/global/unescape/name.js diff --git a/test/annexB/Date/prototype/getYear/length.js b/test/annexB/Date/prototype/getYear/length.js new file mode 100755 index 0000000000..6b228a1339 --- /dev/null +++ b/test/annexB/Date/prototype/getYear/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.4.1 +description: > + Date.prototype.getYear.length is 0. +info: > + Date.prototype.getYear ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getYear.length, 0); + +verifyNotEnumerable(Date.prototype.getYear, "length"); +verifyNotWritable(Date.prototype.getYear, "length"); +verifyConfigurable(Date.prototype.getYear, "length"); diff --git a/test/annexB/Date/prototype/getYear/name.js b/test/annexB/Date/prototype/getYear/name.js new file mode 100755 index 0000000000..c5aa6317f5 --- /dev/null +++ b/test/annexB/Date/prototype/getYear/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.4.1 +description: > + Date.prototype.getYear.name is "getYear". +info: > + Date.prototype.getYear ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getYear.name, "getYear"); + +verifyNotEnumerable(Date.prototype.getYear, "name"); +verifyNotWritable(Date.prototype.getYear, "name"); +verifyConfigurable(Date.prototype.getYear, "name"); diff --git a/test/annexB/Date/prototype/setYear/length.js b/test/annexB/Date/prototype/setYear/length.js new file mode 100755 index 0000000000..11d40add2b --- /dev/null +++ b/test/annexB/Date/prototype/setYear/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.4.2 +description: > + Date.prototype.setYear.length is 1. +info: > + Date.prototype.setYear ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setYear.length, 1); + +verifyNotEnumerable(Date.prototype.setYear, "length"); +verifyNotWritable(Date.prototype.setYear, "length"); +verifyConfigurable(Date.prototype.setYear, "length"); diff --git a/test/annexB/Date/prototype/setYear/name.js b/test/annexB/Date/prototype/setYear/name.js new file mode 100755 index 0000000000..e92b1fa44e --- /dev/null +++ b/test/annexB/Date/prototype/setYear/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.4.2 +description: > + Date.prototype.setYear.name is "setYear". +info: > + Date.prototype.setYear ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setYear.name, "setYear"); + +verifyNotEnumerable(Date.prototype.setYear, "name"); +verifyNotWritable(Date.prototype.setYear, "name"); +verifyConfigurable(Date.prototype.setYear, "name"); diff --git a/test/annexB/Date/prototype/toGMTString/length.js b/test/annexB/Date/prototype/toGMTString/length.js new file mode 100755 index 0000000000..216dd9e718 --- /dev/null +++ b/test/annexB/Date/prototype/toGMTString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.4.3 +description: > + Date.prototype.toGMTString.length is 0. +info: > + Date.prototype.toGMTString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toGMTString.length, 0); + +verifyNotEnumerable(Date.prototype.toGMTString, "length"); +verifyNotWritable(Date.prototype.toGMTString, "length"); +verifyConfigurable(Date.prototype.toGMTString, "length"); diff --git a/test/annexB/Date/prototype/toGMTString/name.js b/test/annexB/Date/prototype/toGMTString/name.js new file mode 100755 index 0000000000..56f10aa86c --- /dev/null +++ b/test/annexB/Date/prototype/toGMTString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.4.3 +description: > + Date.prototype.toGMTString.name is "toUTCString". +info: > + Date.prototype.toGMTString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toGMTString.name, "toUTCString"); + +verifyNotEnumerable(Date.prototype.toGMTString, "name"); +verifyNotWritable(Date.prototype.toGMTString, "name"); +verifyConfigurable(Date.prototype.toGMTString, "name"); diff --git a/test/annexB/RegExp/prototype/compile/length.js b/test/annexB/RegExp/prototype/compile/length.js new file mode 100755 index 0000000000..860cf91ca5 --- /dev/null +++ b/test/annexB/RegExp/prototype/compile/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.5.1 +description: > + RegExp.prototype.compile.length is 2. +info: > + RegExp.prototype.compile (pattern, flags ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RegExp.prototype.compile.length, 2); + +verifyNotEnumerable(RegExp.prototype.compile, "length"); +verifyNotWritable(RegExp.prototype.compile, "length"); +verifyConfigurable(RegExp.prototype.compile, "length"); diff --git a/test/annexB/RegExp/prototype/compile/name.js b/test/annexB/RegExp/prototype/compile/name.js new file mode 100755 index 0000000000..1e6d0740f2 --- /dev/null +++ b/test/annexB/RegExp/prototype/compile/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.5.1 +description: > + RegExp.prototype.compile.name is "compile". +info: > + RegExp.prototype.compile (pattern, flags ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RegExp.prototype.compile.name, "compile"); + +verifyNotEnumerable(RegExp.prototype.compile, "name"); +verifyNotWritable(RegExp.prototype.compile, "name"); +verifyConfigurable(RegExp.prototype.compile, "name"); diff --git a/test/annexB/String/prototype/anchor/length.js b/test/annexB/String/prototype/anchor/length.js new file mode 100755 index 0000000000..0dd0abaada --- /dev/null +++ b/test/annexB/String/prototype/anchor/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.2 +description: > + String.prototype.anchor.length is 1. +info: > + String.prototype.anchor ( name ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.anchor.length, 1); + +verifyNotEnumerable(String.prototype.anchor, "length"); +verifyNotWritable(String.prototype.anchor, "length"); +verifyConfigurable(String.prototype.anchor, "length"); diff --git a/test/annexB/String/prototype/anchor/name.js b/test/annexB/String/prototype/anchor/name.js new file mode 100755 index 0000000000..1a92bf4e10 --- /dev/null +++ b/test/annexB/String/prototype/anchor/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.2 +description: > + String.prototype.anchor.name is "anchor". +info: > + String.prototype.anchor ( name ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.anchor.name, "anchor"); + +verifyNotEnumerable(String.prototype.anchor, "name"); +verifyNotWritable(String.prototype.anchor, "name"); +verifyConfigurable(String.prototype.anchor, "name"); diff --git a/test/annexB/String/prototype/big/length.js b/test/annexB/String/prototype/big/length.js new file mode 100755 index 0000000000..c04e5548dc --- /dev/null +++ b/test/annexB/String/prototype/big/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.3 +description: > + String.prototype.big.length is 0. +info: > + String.prototype.big ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.big.length, 0); + +verifyNotEnumerable(String.prototype.big, "length"); +verifyNotWritable(String.prototype.big, "length"); +verifyConfigurable(String.prototype.big, "length"); diff --git a/test/annexB/String/prototype/big/name.js b/test/annexB/String/prototype/big/name.js new file mode 100755 index 0000000000..271fc258c5 --- /dev/null +++ b/test/annexB/String/prototype/big/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.3 +description: > + String.prototype.big.name is "big". +info: > + String.prototype.big ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.big.name, "big"); + +verifyNotEnumerable(String.prototype.big, "name"); +verifyNotWritable(String.prototype.big, "name"); +verifyConfigurable(String.prototype.big, "name"); diff --git a/test/annexB/String/prototype/blink/length.js b/test/annexB/String/prototype/blink/length.js new file mode 100755 index 0000000000..b29fcd12ad --- /dev/null +++ b/test/annexB/String/prototype/blink/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.4 +description: > + String.prototype.blink.length is 0. +info: > + String.prototype.blink ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.blink.length, 0); + +verifyNotEnumerable(String.prototype.blink, "length"); +verifyNotWritable(String.prototype.blink, "length"); +verifyConfigurable(String.prototype.blink, "length"); diff --git a/test/annexB/String/prototype/blink/name.js b/test/annexB/String/prototype/blink/name.js new file mode 100755 index 0000000000..393782a12b --- /dev/null +++ b/test/annexB/String/prototype/blink/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.4 +description: > + String.prototype.blink.name is "blink". +info: > + String.prototype.blink ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.blink.name, "blink"); + +verifyNotEnumerable(String.prototype.blink, "name"); +verifyNotWritable(String.prototype.blink, "name"); +verifyConfigurable(String.prototype.blink, "name"); diff --git a/test/annexB/String/prototype/bold/length.js b/test/annexB/String/prototype/bold/length.js new file mode 100755 index 0000000000..1b57ad5a17 --- /dev/null +++ b/test/annexB/String/prototype/bold/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.5 +description: > + String.prototype.bold.length is 0. +info: > + String.prototype.bold ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.bold.length, 0); + +verifyNotEnumerable(String.prototype.bold, "length"); +verifyNotWritable(String.prototype.bold, "length"); +verifyConfigurable(String.prototype.bold, "length"); diff --git a/test/annexB/String/prototype/bold/name.js b/test/annexB/String/prototype/bold/name.js new file mode 100755 index 0000000000..ba4398e7ca --- /dev/null +++ b/test/annexB/String/prototype/bold/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.5 +description: > + String.prototype.bold.name is "bold". +info: > + String.prototype.bold ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.bold.name, "bold"); + +verifyNotEnumerable(String.prototype.bold, "name"); +verifyNotWritable(String.prototype.bold, "name"); +verifyConfigurable(String.prototype.bold, "name"); diff --git a/test/annexB/String/prototype/fixed/length.js b/test/annexB/String/prototype/fixed/length.js new file mode 100755 index 0000000000..0bb3b460b9 --- /dev/null +++ b/test/annexB/String/prototype/fixed/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.6 +description: > + String.prototype.fixed.length is 0. +info: > + String.prototype.fixed ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.fixed.length, 0); + +verifyNotEnumerable(String.prototype.fixed, "length"); +verifyNotWritable(String.prototype.fixed, "length"); +verifyConfigurable(String.prototype.fixed, "length"); diff --git a/test/annexB/String/prototype/fixed/name.js b/test/annexB/String/prototype/fixed/name.js new file mode 100755 index 0000000000..0e13006ac0 --- /dev/null +++ b/test/annexB/String/prototype/fixed/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.6 +description: > + String.prototype.fixed.name is "fixed". +info: > + String.prototype.fixed ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.fixed.name, "fixed"); + +verifyNotEnumerable(String.prototype.fixed, "name"); +verifyNotWritable(String.prototype.fixed, "name"); +verifyConfigurable(String.prototype.fixed, "name"); diff --git a/test/annexB/String/prototype/fontcolor/length.js b/test/annexB/String/prototype/fontcolor/length.js new file mode 100755 index 0000000000..702400bb32 --- /dev/null +++ b/test/annexB/String/prototype/fontcolor/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.7 +description: > + String.prototype.fontcolor.length is 1. +info: > + String.prototype.fontcolor ( color ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.fontcolor.length, 1); + +verifyNotEnumerable(String.prototype.fontcolor, "length"); +verifyNotWritable(String.prototype.fontcolor, "length"); +verifyConfigurable(String.prototype.fontcolor, "length"); diff --git a/test/annexB/String/prototype/fontcolor/name.js b/test/annexB/String/prototype/fontcolor/name.js new file mode 100755 index 0000000000..7a717ef63a --- /dev/null +++ b/test/annexB/String/prototype/fontcolor/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.7 +description: > + String.prototype.fontcolor.name is "fontcolor". +info: > + String.prototype.fontcolor ( color ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.fontcolor.name, "fontcolor"); + +verifyNotEnumerable(String.prototype.fontcolor, "name"); +verifyNotWritable(String.prototype.fontcolor, "name"); +verifyConfigurable(String.prototype.fontcolor, "name"); diff --git a/test/annexB/String/prototype/fontsize/length.js b/test/annexB/String/prototype/fontsize/length.js new file mode 100755 index 0000000000..33bae20f91 --- /dev/null +++ b/test/annexB/String/prototype/fontsize/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.8 +description: > + String.prototype.fontsize.length is 1. +info: > + String.prototype.fontsize ( size ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.fontsize.length, 1); + +verifyNotEnumerable(String.prototype.fontsize, "length"); +verifyNotWritable(String.prototype.fontsize, "length"); +verifyConfigurable(String.prototype.fontsize, "length"); diff --git a/test/annexB/String/prototype/fontsize/name.js b/test/annexB/String/prototype/fontsize/name.js new file mode 100755 index 0000000000..c45e27f724 --- /dev/null +++ b/test/annexB/String/prototype/fontsize/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.8 +description: > + String.prototype.fontsize.name is "fontsize". +info: > + String.prototype.fontsize ( color ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.fontsize.name, "fontsize"); + +verifyNotEnumerable(String.prototype.fontsize, "name"); +verifyNotWritable(String.prototype.fontsize, "name"); +verifyConfigurable(String.prototype.fontsize, "name"); diff --git a/test/annexB/String/prototype/italics/length.js b/test/annexB/String/prototype/italics/length.js new file mode 100755 index 0000000000..86121c1afa --- /dev/null +++ b/test/annexB/String/prototype/italics/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.9 +description: > + String.prototype.italics.length is 0. +info: > + String.prototype.italics ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.italics.length, 0); + +verifyNotEnumerable(String.prototype.italics, "length"); +verifyNotWritable(String.prototype.italics, "length"); +verifyConfigurable(String.prototype.italics, "length"); diff --git a/test/annexB/String/prototype/italics/name.js b/test/annexB/String/prototype/italics/name.js new file mode 100755 index 0000000000..071b175c64 --- /dev/null +++ b/test/annexB/String/prototype/italics/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.9 +description: > + String.prototype.italics.name is "italics". +info: > + String.prototype.italics ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.italics.name, "italics"); + +verifyNotEnumerable(String.prototype.italics, "name"); +verifyNotWritable(String.prototype.italics, "name"); +verifyConfigurable(String.prototype.italics, "name"); diff --git a/test/annexB/String/prototype/link/length.js b/test/annexB/String/prototype/link/length.js new file mode 100755 index 0000000000..fbbe27cd52 --- /dev/null +++ b/test/annexB/String/prototype/link/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.10 +description: > + String.prototype.link.length is 1. +info: > + String.prototype.link ( url ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.link.length, 1); + +verifyNotEnumerable(String.prototype.link, "length"); +verifyNotWritable(String.prototype.link, "length"); +verifyConfigurable(String.prototype.link, "length"); diff --git a/test/annexB/String/prototype/link/name.js b/test/annexB/String/prototype/link/name.js new file mode 100755 index 0000000000..e9b2dc3401 --- /dev/null +++ b/test/annexB/String/prototype/link/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.10 +description: > + String.prototype.link.name is "link". +info: > + String.prototype.link ( url ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.link.name, "link"); + +verifyNotEnumerable(String.prototype.link, "name"); +verifyNotWritable(String.prototype.link, "name"); +verifyConfigurable(String.prototype.link, "name"); diff --git a/test/annexB/String/prototype/small/length.js b/test/annexB/String/prototype/small/length.js new file mode 100755 index 0000000000..f5e32ce487 --- /dev/null +++ b/test/annexB/String/prototype/small/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.11 +description: > + String.prototype.small.length is 0. +info: > + String.prototype.small ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.small.length, 0); + +verifyNotEnumerable(String.prototype.small, "length"); +verifyNotWritable(String.prototype.small, "length"); +verifyConfigurable(String.prototype.small, "length"); diff --git a/test/annexB/String/prototype/small/name.js b/test/annexB/String/prototype/small/name.js new file mode 100755 index 0000000000..07278ac122 --- /dev/null +++ b/test/annexB/String/prototype/small/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.11 +description: > + String.prototype.small.name is "small". +info: > + String.prototype.small ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.small.name, "small"); + +verifyNotEnumerable(String.prototype.small, "name"); +verifyNotWritable(String.prototype.small, "name"); +verifyConfigurable(String.prototype.small, "name"); diff --git a/test/annexB/String/prototype/strike/length.js b/test/annexB/String/prototype/strike/length.js new file mode 100755 index 0000000000..f900a36bfb --- /dev/null +++ b/test/annexB/String/prototype/strike/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.12 +description: > + String.prototype.strike.length is 0. +info: > + String.prototype.strike ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.strike.length, 0); + +verifyNotEnumerable(String.prototype.strike, "length"); +verifyNotWritable(String.prototype.strike, "length"); +verifyConfigurable(String.prototype.strike, "length"); diff --git a/test/annexB/String/prototype/strike/name.js b/test/annexB/String/prototype/strike/name.js new file mode 100755 index 0000000000..bda703860c --- /dev/null +++ b/test/annexB/String/prototype/strike/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.12 +description: > + String.prototype.strike.name is "strike". +info: > + String.prototype.strike ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.strike.name, "strike"); + +verifyNotEnumerable(String.prototype.strike, "name"); +verifyNotWritable(String.prototype.strike, "name"); +verifyConfigurable(String.prototype.strike, "name"); diff --git a/test/annexB/String/prototype/sub/length.js b/test/annexB/String/prototype/sub/length.js new file mode 100755 index 0000000000..7c7ed50ff7 --- /dev/null +++ b/test/annexB/String/prototype/sub/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.13 +description: > + String.prototype.sub.length is 0. +info: > + String.prototype.sub ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.sub.length, 0); + +verifyNotEnumerable(String.prototype.sub, "length"); +verifyNotWritable(String.prototype.sub, "length"); +verifyConfigurable(String.prototype.sub, "length"); diff --git a/test/annexB/String/prototype/sub/name.js b/test/annexB/String/prototype/sub/name.js new file mode 100755 index 0000000000..e1ea91559e --- /dev/null +++ b/test/annexB/String/prototype/sub/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.13 +description: > + String.prototype.sub.name is "sub". +info: > + String.prototype.sub ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.sub.name, "sub"); + +verifyNotEnumerable(String.prototype.sub, "name"); +verifyNotWritable(String.prototype.sub, "name"); +verifyConfigurable(String.prototype.sub, "name"); diff --git a/test/annexB/String/prototype/substr/length.js b/test/annexB/String/prototype/substr/length.js new file mode 100755 index 0000000000..05c36f75e0 --- /dev/null +++ b/test/annexB/String/prototype/substr/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.1 +description: > + String.prototype.substr.length is 2. +info: > + String.prototype.substr (start, length) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.substr.length, 2); + +verifyNotEnumerable(String.prototype.substr, "length"); +verifyNotWritable(String.prototype.substr, "length"); +verifyConfigurable(String.prototype.substr, "length"); diff --git a/test/annexB/String/prototype/substr/name.js b/test/annexB/String/prototype/substr/name.js new file mode 100755 index 0000000000..ef8057acad --- /dev/null +++ b/test/annexB/String/prototype/substr/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.1 +description: > + String.prototype.substr.name is "substr". +info: > + String.prototype.substr (start, length) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.substr.name, "substr"); + +verifyNotEnumerable(String.prototype.substr, "name"); +verifyNotWritable(String.prototype.substr, "name"); +verifyConfigurable(String.prototype.substr, "name"); diff --git a/test/annexB/String/prototype/sup/length.js b/test/annexB/String/prototype/sup/length.js new file mode 100755 index 0000000000..f312bf98ba --- /dev/null +++ b/test/annexB/String/prototype/sup/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.14 +description: > + String.prototype.sup.length is 0. +info: > + String.prototype.sup ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.sup.length, 0); + +verifyNotEnumerable(String.prototype.sup, "length"); +verifyNotWritable(String.prototype.sup, "length"); +verifyConfigurable(String.prototype.sup, "length"); diff --git a/test/annexB/String/prototype/sup/name.js b/test/annexB/String/prototype/sup/name.js new file mode 100755 index 0000000000..4642c4c273 --- /dev/null +++ b/test/annexB/String/prototype/sup/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.3.14 +description: > + String.prototype.sup.name is "sup". +info: > + String.prototype.sup ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.sup.name, "sup"); + +verifyNotEnumerable(String.prototype.sup, "name"); +verifyNotWritable(String.prototype.sup, "name"); +verifyConfigurable(String.prototype.sup, "name"); diff --git a/test/annexB/global/escape/length.js b/test/annexB/global/escape/length.js new file mode 100755 index 0000000000..08be6f98a3 --- /dev/null +++ b/test/annexB/global/escape/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.1.1 +description: > + escape.length is 1. +info: > + escape (string) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(escape.length, 1); + +verifyNotEnumerable(escape, "length"); +verifyNotWritable(escape, "length"); +verifyConfigurable(escape, "length"); diff --git a/test/annexB/global/escape/name.js b/test/annexB/global/escape/name.js new file mode 100755 index 0000000000..392009b71f --- /dev/null +++ b/test/annexB/global/escape/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.1.1 +description: > + escape.name is "escape". +info: > + escape (string) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(escape.name, "escape"); + +verifyNotEnumerable(escape, "name"); +verifyNotWritable(escape, "name"); +verifyConfigurable(escape, "name"); diff --git a/test/annexB/global/unescape/length.js b/test/annexB/global/unescape/length.js new file mode 100755 index 0000000000..f700c74350 --- /dev/null +++ b/test/annexB/global/unescape/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.1.2 +description: > + unescape.length is 1. +info: > + unescape (string) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(unescape.length, 1); + +verifyNotEnumerable(unescape, "length"); +verifyNotWritable(unescape, "length"); +verifyConfigurable(unescape, "length"); diff --git a/test/annexB/global/unescape/name.js b/test/annexB/global/unescape/name.js new file mode 100755 index 0000000000..f524d40772 --- /dev/null +++ b/test/annexB/global/unescape/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: B.2.1.2 +description: > + unescape.name is "unescape". +info: > + unescape (string) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(unescape.name, "unescape"); + +verifyNotEnumerable(unescape, "name"); +verifyNotWritable(unescape, "name"); +verifyConfigurable(unescape, "name"); From ca61d9b8768aca53a2b15dbe486551dcd7310074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 15 Jan 2016 18:12:05 +0100 Subject: [PATCH 3/6] Add missing tests for "length" and "name" properties of built-in functions Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20) --- test/built-ins/Array/Symbol.species/length.js | 32 +++++++++++++++++++ test/built-ins/Array/isArray/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/concat/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/every/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/filter/name.js | 26 +++++++++++++++ .../built-ins/Array/prototype/forEach/name.js | 26 +++++++++++++++ .../built-ins/Array/prototype/indexOf/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/join/name.js | 26 +++++++++++++++ .../Array/prototype/lastIndexOf/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/map/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/pop/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/push/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/reduce/name.js | 26 +++++++++++++++ .../Array/prototype/reduceRight/name.js | 26 +++++++++++++++ .../built-ins/Array/prototype/reverse/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/shift/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/slice/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/some/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/sort/name.js | 26 +++++++++++++++ test/built-ins/Array/prototype/splice/name.js | 26 +++++++++++++++ .../Array/prototype/toLocaleString/name.js | 26 +++++++++++++++ .../Array/prototype/toString/name.js | 26 +++++++++++++++ .../built-ins/Array/prototype/unshift/name.js | 26 +++++++++++++++ .../ArrayBuffer/Symbol.species/length.js | 32 +++++++++++++++++++ test/built-ins/ArrayBuffer/isView/length.js | 29 +++++++++++++++++ test/built-ins/ArrayBuffer/isView/name.js | 26 +++++++++++++++ .../prototype/byteLength/length.js | 31 ++++++++++++++++++ .../ArrayIteratorPrototype/next/length.js | 31 ++++++++++++++++++ .../ArrayIteratorPrototype/next/name.js | 28 ++++++++++++++++ .../Boolean/prototype/toString/length.js | 29 +++++++++++++++++ .../Boolean/prototype/toString/name.js | 26 +++++++++++++++ .../Boolean/prototype/valueOf/length.js | 29 +++++++++++++++++ .../Boolean/prototype/valueOf/name.js | 26 +++++++++++++++ .../DataView/prototype/buffer/length.js | 31 ++++++++++++++++++ .../DataView/prototype/byteLength/length.js | 31 ++++++++++++++++++ .../DataView/prototype/byteOffset/length.js | 31 ++++++++++++++++++ .../DataView/prototype/getFloat32/length.js | 30 +++++++++++++++++ .../DataView/prototype/getFloat32/name.js | 26 +++++++++++++++ .../DataView/prototype/getFloat64/length.js | 30 +++++++++++++++++ .../DataView/prototype/getFloat64/name.js | 26 +++++++++++++++ .../DataView/prototype/getInt16/length.js | 30 +++++++++++++++++ .../DataView/prototype/getInt16/name.js | 26 +++++++++++++++ .../DataView/prototype/getInt32/length.js | 30 +++++++++++++++++ .../DataView/prototype/getInt32/name.js | 26 +++++++++++++++ .../DataView/prototype/getInt8/length.js | 29 +++++++++++++++++ .../DataView/prototype/getInt8/name.js | 26 +++++++++++++++ .../DataView/prototype/getUint16/length.js | 30 +++++++++++++++++ .../DataView/prototype/getUint16/name.js | 26 +++++++++++++++ .../DataView/prototype/getUint32/length.js | 30 +++++++++++++++++ .../DataView/prototype/getUint32/name.js | 26 +++++++++++++++ .../DataView/prototype/getUint8/length.js | 29 +++++++++++++++++ .../DataView/prototype/getUint8/name.js | 26 +++++++++++++++ .../DataView/prototype/setFloat32/length.js | 30 +++++++++++++++++ .../DataView/prototype/setFloat32/name.js | 26 +++++++++++++++ .../DataView/prototype/setFloat64/length.js | 30 +++++++++++++++++ .../DataView/prototype/setFloat64/name.js | 26 +++++++++++++++ .../DataView/prototype/setInt16/length.js | 30 +++++++++++++++++ .../DataView/prototype/setInt16/name.js | 26 +++++++++++++++ .../DataView/prototype/setInt32/length.js | 30 +++++++++++++++++ .../DataView/prototype/setInt32/name.js | 26 +++++++++++++++ .../DataView/prototype/setInt8/length.js | 29 +++++++++++++++++ .../DataView/prototype/setInt8/name.js | 26 +++++++++++++++ .../DataView/prototype/setUint16/length.js | 30 +++++++++++++++++ .../DataView/prototype/setUint16/name.js | 26 +++++++++++++++ .../DataView/prototype/setUint32/length.js | 30 +++++++++++++++++ .../DataView/prototype/setUint32/name.js | 26 +++++++++++++++ .../DataView/prototype/setUint8/length.js | 29 +++++++++++++++++ .../DataView/prototype/setUint8/name.js | 26 +++++++++++++++ test/built-ins/Date/UTC/name.js | 26 +++++++++++++++ test/built-ins/Date/now/name.js | 26 +++++++++++++++ test/built-ins/Date/parse/name.js | 26 +++++++++++++++ test/built-ins/Date/prototype/getDate/name.js | 26 +++++++++++++++ test/built-ins/Date/prototype/getDay/name.js | 26 +++++++++++++++ .../Date/prototype/getFullYear/name.js | 26 +++++++++++++++ .../built-ins/Date/prototype/getHours/name.js | 26 +++++++++++++++ .../Date/prototype/getMilliseconds/name.js | 26 +++++++++++++++ .../Date/prototype/getMinutes/name.js | 26 +++++++++++++++ .../built-ins/Date/prototype/getMonth/name.js | 26 +++++++++++++++ .../Date/prototype/getSeconds/name.js | 26 +++++++++++++++ test/built-ins/Date/prototype/getTime/name.js | 26 +++++++++++++++ .../Date/prototype/getTimezoneOffset/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCDate/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCDay/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCFullYear/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCHours/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCMilliseconds/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCMinutes/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCMonth/name.js | 26 +++++++++++++++ .../Date/prototype/getUTCSeconds/name.js | 26 +++++++++++++++ test/built-ins/Date/prototype/setDate/name.js | 26 +++++++++++++++ .../Date/prototype/setFullYear/name.js | 26 +++++++++++++++ .../built-ins/Date/prototype/setHours/name.js | 26 +++++++++++++++ .../Date/prototype/setMilliseconds/name.js | 26 +++++++++++++++ .../Date/prototype/setMinutes/name.js | 26 +++++++++++++++ .../built-ins/Date/prototype/setMonth/name.js | 26 +++++++++++++++ .../Date/prototype/setSeconds/name.js | 26 +++++++++++++++ test/built-ins/Date/prototype/setTime/name.js | 26 +++++++++++++++ .../Date/prototype/setUTCDate/name.js | 26 +++++++++++++++ .../Date/prototype/setUTCFullYear/name.js | 26 +++++++++++++++ .../Date/prototype/setUTCHours/name.js | 26 +++++++++++++++ .../Date/prototype/setUTCMilliseconds/name.js | 26 +++++++++++++++ .../Date/prototype/setUTCMinutes/name.js | 26 +++++++++++++++ .../Date/prototype/setUTCMonth/name.js | 26 +++++++++++++++ .../Date/prototype/setUTCSeconds/name.js | 26 +++++++++++++++ .../Date/prototype/toDateString/name.js | 26 +++++++++++++++ .../Date/prototype/toISOString/name.js | 26 +++++++++++++++ test/built-ins/Date/prototype/toJSON/name.js | 26 +++++++++++++++ .../Date/prototype/toLocaleDateString/name.js | 26 +++++++++++++++ .../Date/prototype/toLocaleString/name.js | 26 +++++++++++++++ .../Date/prototype/toLocaleTimeString/name.js | 26 +++++++++++++++ .../built-ins/Date/prototype/toString/name.js | 26 +++++++++++++++ .../Date/prototype/toTimeString/name.js | 26 +++++++++++++++ .../Date/prototype/toUTCString/name.js | 26 +++++++++++++++ test/built-ins/Date/prototype/valueOf/name.js | 26 +++++++++++++++ .../Error/prototype/toString/length.js | 29 +++++++++++++++++ .../Error/prototype/toString/name.js | 26 +++++++++++++++ .../Function/prototype/apply/name.js | 26 +++++++++++++++ .../built-ins/Function/prototype/bind/name.js | 26 +++++++++++++++ .../built-ins/Function/prototype/call/name.js | 26 +++++++++++++++ .../Function/prototype/toString/name.js | 26 +++++++++++++++ .../GeneratorPrototype/next/length.js | 32 +++++++++++++++++++ .../built-ins/GeneratorPrototype/next/name.js | 29 +++++++++++++++++ .../GeneratorPrototype/return/length.js | 32 +++++++++++++++++++ .../GeneratorPrototype/return/name.js | 29 +++++++++++++++++ .../GeneratorPrototype/throw/length.js | 32 +++++++++++++++++++ .../GeneratorPrototype/throw/name.js | 29 +++++++++++++++++ test/built-ins/JSON/parse/name.js | 26 +++++++++++++++ test/built-ins/JSON/stringify/name.js | 26 +++++++++++++++ test/built-ins/Map/Symbol.species/length.js | 32 +++++++++++++++++++ .../MapIteratorPrototype/next/length.js | 31 ++++++++++++++++++ .../MapIteratorPrototype/next/name.js | 28 ++++++++++++++++ test/built-ins/Math/abs/length.js | 29 +++++++++++++++++ test/built-ins/Math/abs/name.js | 26 +++++++++++++++ test/built-ins/Math/acos/length.js | 29 +++++++++++++++++ test/built-ins/Math/acos/name.js | 26 +++++++++++++++ test/built-ins/Math/acosh/name.js | 26 +++++++++++++++ test/built-ins/Math/asin/length.js | 29 +++++++++++++++++ test/built-ins/Math/asin/name.js | 26 +++++++++++++++ test/built-ins/Math/asinh/name.js | 26 +++++++++++++++ test/built-ins/Math/atan/length.js | 29 +++++++++++++++++ test/built-ins/Math/atan/name.js | 26 +++++++++++++++ test/built-ins/Math/atan2/length.js | 29 +++++++++++++++++ test/built-ins/Math/atan2/name.js | 26 +++++++++++++++ test/built-ins/Math/atanh/name.js | 26 +++++++++++++++ test/built-ins/Math/cbrt/name.js | 26 +++++++++++++++ test/built-ins/Math/ceil/length.js | 29 +++++++++++++++++ test/built-ins/Math/ceil/name.js | 26 +++++++++++++++ test/built-ins/Math/clz32/length.js | 29 +++++++++++++++++ test/built-ins/Math/clz32/name.js | 26 +++++++++++++++ test/built-ins/Math/cos/length.js | 29 +++++++++++++++++ test/built-ins/Math/cos/name.js | 26 +++++++++++++++ test/built-ins/Math/cosh/name.js | 26 +++++++++++++++ test/built-ins/Math/exp/length.js | 29 +++++++++++++++++ test/built-ins/Math/exp/name.js | 26 +++++++++++++++ test/built-ins/Math/expm1/name.js | 26 +++++++++++++++ test/built-ins/Math/floor/length.js | 29 +++++++++++++++++ test/built-ins/Math/floor/name.js | 26 +++++++++++++++ test/built-ins/Math/fround/length.js | 29 +++++++++++++++++ test/built-ins/Math/fround/name.js | 26 +++++++++++++++ test/built-ins/Math/hypot/name.js | 26 +++++++++++++++ test/built-ins/Math/imul/name.js | 26 +++++++++++++++ test/built-ins/Math/log/length.js | 29 +++++++++++++++++ test/built-ins/Math/log/name.js | 26 +++++++++++++++ test/built-ins/Math/log10/name.js | 26 +++++++++++++++ test/built-ins/Math/log1p/name.js | 26 +++++++++++++++ test/built-ins/Math/log2/name.js | 26 +++++++++++++++ test/built-ins/Math/max/name.js | 26 +++++++++++++++ test/built-ins/Math/min/name.js | 26 +++++++++++++++ test/built-ins/Math/pow/length.js | 29 +++++++++++++++++ test/built-ins/Math/pow/name.js | 26 +++++++++++++++ test/built-ins/Math/random/length.js | 29 +++++++++++++++++ test/built-ins/Math/random/name.js | 26 +++++++++++++++ test/built-ins/Math/round/length.js | 29 +++++++++++++++++ test/built-ins/Math/round/name.js | 26 +++++++++++++++ test/built-ins/Math/sign/name.js | 26 +++++++++++++++ test/built-ins/Math/sin/length.js | 29 +++++++++++++++++ test/built-ins/Math/sin/name.js | 26 +++++++++++++++ test/built-ins/Math/sinh/name.js | 26 +++++++++++++++ test/built-ins/Math/sqrt/length.js | 29 +++++++++++++++++ test/built-ins/Math/sqrt/name.js | 26 +++++++++++++++ test/built-ins/Math/tan/length.js | 29 +++++++++++++++++ test/built-ins/Math/tan/name.js | 26 +++++++++++++++ test/built-ins/Math/tanh/name.js | 26 +++++++++++++++ test/built-ins/Math/trunc/name.js | 26 +++++++++++++++ test/built-ins/Number/isFinite/length.js | 29 +++++++++++++++++ test/built-ins/Number/isFinite/name.js | 26 +++++++++++++++ test/built-ins/Number/isInteger/length.js | 29 +++++++++++++++++ test/built-ins/Number/isInteger/name.js | 26 +++++++++++++++ test/built-ins/Number/isNaN/length.js | 29 +++++++++++++++++ test/built-ins/Number/isNaN/name.js | 26 +++++++++++++++ test/built-ins/Number/isSafeInteger/length.js | 29 +++++++++++++++++ test/built-ins/Number/isSafeInteger/name.js | 26 +++++++++++++++ .../Number/prototype/toExponential/length.js | 29 +++++++++++++++++ .../Number/prototype/toExponential/name.js | 26 +++++++++++++++ .../Number/prototype/toFixed/name.js | 26 +++++++++++++++ .../Number/prototype/toLocaleString/length.js | 29 +++++++++++++++++ .../Number/prototype/toLocaleString/name.js | 26 +++++++++++++++ .../Number/prototype/toPrecision/length.js | 29 +++++++++++++++++ .../Number/prototype/toPrecision/name.js | 26 +++++++++++++++ .../Number/prototype/toString/length.js | 29 +++++++++++++++++ .../Number/prototype/toString/name.js | 26 +++++++++++++++ .../Number/prototype/valueOf/length.js | 29 +++++++++++++++++ .../Number/prototype/valueOf/name.js | 26 +++++++++++++++ test/built-ins/Object/create/name.js | 26 +++++++++++++++ .../built-ins/Object/defineProperties/name.js | 26 +++++++++++++++ test/built-ins/Object/defineProperty/name.js | 26 +++++++++++++++ test/built-ins/Object/freeze/name.js | 26 +++++++++++++++ .../Object/getOwnPropertyDescriptor/name.js | 26 +++++++++++++++ .../Object/getOwnPropertyNames/name.js | 26 +++++++++++++++ .../Object/getOwnPropertySymbols/length.js | 29 +++++++++++++++++ .../Object/getOwnPropertySymbols/name.js | 26 +++++++++++++++ test/built-ins/Object/getPrototypeOf/name.js | 26 +++++++++++++++ test/built-ins/Object/isExtensible/name.js | 26 +++++++++++++++ test/built-ins/Object/isFrozen/name.js | 26 +++++++++++++++ test/built-ins/Object/isSealed/name.js | 26 +++++++++++++++ test/built-ins/Object/keys/name.js | 26 +++++++++++++++ .../Object/preventExtensions/name.js | 26 +++++++++++++++ .../Object/prototype/hasOwnProperty/name.js | 26 +++++++++++++++ .../Object/prototype/isPrototypeOf/name.js | 26 +++++++++++++++ .../prototype/propertyIsEnumerable/name.js | 26 +++++++++++++++ .../Object/prototype/toLocaleString/name.js | 26 +++++++++++++++ .../Object/prototype/toString/name.js | 26 +++++++++++++++ .../Object/prototype/valueOf/name.js | 26 +++++++++++++++ test/built-ins/Object/seal/name.js | 26 +++++++++++++++ .../Promise/Symbol.species/length.js | 32 +++++++++++++++++++ test/built-ins/Proxy/revocable/length.js | 29 +++++++++++++++++ test/built-ins/Proxy/revocable/name.js | 26 +++++++++++++++ .../built-ins/RegExp/Symbol.species/length.js | 32 +++++++++++++++++++ test/built-ins/RegExp/prototype/exec/name.js | 26 +++++++++++++++ .../RegExp/prototype/flags/length.js | 31 ++++++++++++++++++ .../RegExp/prototype/global/length.js | 31 ++++++++++++++++++ .../RegExp/prototype/ignoreCase/length.js | 31 ++++++++++++++++++ .../RegExp/prototype/multiline/length.js | 31 ++++++++++++++++++ .../RegExp/prototype/source/length.js | 31 ++++++++++++++++++ .../RegExp/prototype/sticky/length.js | 31 ++++++++++++++++++ test/built-ins/RegExp/prototype/test/name.js | 26 +++++++++++++++ .../RegExp/prototype/toString/name.js | 26 +++++++++++++++ test/built-ins/Set/Symbol.species/length.js | 32 +++++++++++++++++++ .../SetIteratorPrototype/next/length.js | 31 ++++++++++++++++++ .../SetIteratorPrototype/next/name.js | 28 ++++++++++++++++ test/built-ins/String/fromCharCode/name.js | 26 +++++++++++++++ .../built-ins/String/prototype/charAt/name.js | 26 +++++++++++++++ .../String/prototype/charCodeAt/name.js | 26 +++++++++++++++ .../built-ins/String/prototype/concat/name.js | 26 +++++++++++++++ .../String/prototype/indexOf/name.js | 26 +++++++++++++++ .../String/prototype/lastIndexOf/name.js | 26 +++++++++++++++ .../String/prototype/localeCompare/name.js | 26 +++++++++++++++ test/built-ins/String/prototype/match/name.js | 26 +++++++++++++++ .../String/prototype/replace/name.js | 26 +++++++++++++++ .../built-ins/String/prototype/search/name.js | 26 +++++++++++++++ test/built-ins/String/prototype/slice/name.js | 26 +++++++++++++++ test/built-ins/String/prototype/split/name.js | 26 +++++++++++++++ .../String/prototype/substring/name.js | 26 +++++++++++++++ .../prototype/toLocaleLowerCase/name.js | 26 +++++++++++++++ .../prototype/toLocaleUpperCase/name.js | 26 +++++++++++++++ .../String/prototype/toLowerCase/name.js | 26 +++++++++++++++ .../String/prototype/toString/name.js | 26 +++++++++++++++ .../String/prototype/toUpperCase/name.js | 26 +++++++++++++++ test/built-ins/String/prototype/trim/name.js | 26 +++++++++++++++ .../String/prototype/valueOf/length.js | 29 +++++++++++++++++ .../String/prototype/valueOf/name.js | 26 +++++++++++++++ .../StringIteratorPrototype/next/length.js | 32 +++++++++++++++++++ .../StringIteratorPrototype/next/name.js | 28 ++++++++++++++++ test/built-ins/Symbol/for/length.js | 29 +++++++++++++++++ test/built-ins/Symbol/for/name.js | 26 +++++++++++++++ test/built-ins/Symbol/keyFor/length.js | 29 +++++++++++++++++ test/built-ins/Symbol/keyFor/name.js | 26 +++++++++++++++ .../Symbol/prototype/toString/length.js | 29 +++++++++++++++++ .../Symbol/prototype/toString/name.js | 26 +++++++++++++++ .../Symbol/prototype/valueOf/length.js | 29 +++++++++++++++++ .../Symbol/prototype/valueOf/name.js | 26 +++++++++++++++ test/built-ins/decodeURI/name.js | 26 +++++++++++++++ test/built-ins/decodeURIComponent/name.js | 26 +++++++++++++++ test/built-ins/encodeURI/name.js | 26 +++++++++++++++ test/built-ins/encodeURIComponent/name.js | 26 +++++++++++++++ test/built-ins/eval/name.js | 26 +++++++++++++++ test/built-ins/isFinite/name.js | 26 +++++++++++++++ test/built-ins/isNaN/name.js | 26 +++++++++++++++ test/built-ins/parseFloat/name.js | 26 +++++++++++++++ test/built-ins/parseInt/name.js | 26 +++++++++++++++ 280 files changed, 7596 insertions(+) create mode 100755 test/built-ins/Array/Symbol.species/length.js create mode 100755 test/built-ins/Array/isArray/name.js create mode 100755 test/built-ins/Array/prototype/concat/name.js create mode 100755 test/built-ins/Array/prototype/every/name.js create mode 100755 test/built-ins/Array/prototype/filter/name.js create mode 100755 test/built-ins/Array/prototype/forEach/name.js create mode 100755 test/built-ins/Array/prototype/indexOf/name.js create mode 100755 test/built-ins/Array/prototype/join/name.js create mode 100755 test/built-ins/Array/prototype/lastIndexOf/name.js create mode 100755 test/built-ins/Array/prototype/map/name.js create mode 100755 test/built-ins/Array/prototype/pop/name.js create mode 100755 test/built-ins/Array/prototype/push/name.js create mode 100755 test/built-ins/Array/prototype/reduce/name.js create mode 100755 test/built-ins/Array/prototype/reduceRight/name.js create mode 100755 test/built-ins/Array/prototype/reverse/name.js create mode 100755 test/built-ins/Array/prototype/shift/name.js create mode 100755 test/built-ins/Array/prototype/slice/name.js create mode 100755 test/built-ins/Array/prototype/some/name.js create mode 100755 test/built-ins/Array/prototype/sort/name.js create mode 100755 test/built-ins/Array/prototype/splice/name.js create mode 100755 test/built-ins/Array/prototype/toLocaleString/name.js create mode 100755 test/built-ins/Array/prototype/toString/name.js create mode 100755 test/built-ins/Array/prototype/unshift/name.js create mode 100755 test/built-ins/ArrayBuffer/Symbol.species/length.js create mode 100755 test/built-ins/ArrayBuffer/isView/length.js create mode 100755 test/built-ins/ArrayBuffer/isView/name.js create mode 100755 test/built-ins/ArrayBuffer/prototype/byteLength/length.js create mode 100755 test/built-ins/ArrayIteratorPrototype/next/length.js create mode 100755 test/built-ins/ArrayIteratorPrototype/next/name.js create mode 100755 test/built-ins/Boolean/prototype/toString/length.js create mode 100755 test/built-ins/Boolean/prototype/toString/name.js create mode 100755 test/built-ins/Boolean/prototype/valueOf/length.js create mode 100755 test/built-ins/Boolean/prototype/valueOf/name.js create mode 100755 test/built-ins/DataView/prototype/buffer/length.js create mode 100755 test/built-ins/DataView/prototype/byteLength/length.js create mode 100755 test/built-ins/DataView/prototype/byteOffset/length.js create mode 100755 test/built-ins/DataView/prototype/getFloat32/length.js create mode 100755 test/built-ins/DataView/prototype/getFloat32/name.js create mode 100755 test/built-ins/DataView/prototype/getFloat64/length.js create mode 100755 test/built-ins/DataView/prototype/getFloat64/name.js create mode 100755 test/built-ins/DataView/prototype/getInt16/length.js create mode 100755 test/built-ins/DataView/prototype/getInt16/name.js create mode 100755 test/built-ins/DataView/prototype/getInt32/length.js create mode 100755 test/built-ins/DataView/prototype/getInt32/name.js create mode 100755 test/built-ins/DataView/prototype/getInt8/length.js create mode 100755 test/built-ins/DataView/prototype/getInt8/name.js create mode 100755 test/built-ins/DataView/prototype/getUint16/length.js create mode 100755 test/built-ins/DataView/prototype/getUint16/name.js create mode 100755 test/built-ins/DataView/prototype/getUint32/length.js create mode 100755 test/built-ins/DataView/prototype/getUint32/name.js create mode 100755 test/built-ins/DataView/prototype/getUint8/length.js create mode 100755 test/built-ins/DataView/prototype/getUint8/name.js create mode 100755 test/built-ins/DataView/prototype/setFloat32/length.js create mode 100755 test/built-ins/DataView/prototype/setFloat32/name.js create mode 100755 test/built-ins/DataView/prototype/setFloat64/length.js create mode 100755 test/built-ins/DataView/prototype/setFloat64/name.js create mode 100755 test/built-ins/DataView/prototype/setInt16/length.js create mode 100755 test/built-ins/DataView/prototype/setInt16/name.js create mode 100755 test/built-ins/DataView/prototype/setInt32/length.js create mode 100755 test/built-ins/DataView/prototype/setInt32/name.js create mode 100755 test/built-ins/DataView/prototype/setInt8/length.js create mode 100755 test/built-ins/DataView/prototype/setInt8/name.js create mode 100755 test/built-ins/DataView/prototype/setUint16/length.js create mode 100755 test/built-ins/DataView/prototype/setUint16/name.js create mode 100755 test/built-ins/DataView/prototype/setUint32/length.js create mode 100755 test/built-ins/DataView/prototype/setUint32/name.js create mode 100755 test/built-ins/DataView/prototype/setUint8/length.js create mode 100755 test/built-ins/DataView/prototype/setUint8/name.js create mode 100755 test/built-ins/Date/UTC/name.js create mode 100755 test/built-ins/Date/now/name.js create mode 100755 test/built-ins/Date/parse/name.js create mode 100755 test/built-ins/Date/prototype/getDate/name.js create mode 100755 test/built-ins/Date/prototype/getDay/name.js create mode 100755 test/built-ins/Date/prototype/getFullYear/name.js create mode 100755 test/built-ins/Date/prototype/getHours/name.js create mode 100755 test/built-ins/Date/prototype/getMilliseconds/name.js create mode 100755 test/built-ins/Date/prototype/getMinutes/name.js create mode 100755 test/built-ins/Date/prototype/getMonth/name.js create mode 100755 test/built-ins/Date/prototype/getSeconds/name.js create mode 100755 test/built-ins/Date/prototype/getTime/name.js create mode 100755 test/built-ins/Date/prototype/getTimezoneOffset/name.js create mode 100755 test/built-ins/Date/prototype/getUTCDate/name.js create mode 100755 test/built-ins/Date/prototype/getUTCDay/name.js create mode 100755 test/built-ins/Date/prototype/getUTCFullYear/name.js create mode 100755 test/built-ins/Date/prototype/getUTCHours/name.js create mode 100755 test/built-ins/Date/prototype/getUTCMilliseconds/name.js create mode 100755 test/built-ins/Date/prototype/getUTCMinutes/name.js create mode 100755 test/built-ins/Date/prototype/getUTCMonth/name.js create mode 100755 test/built-ins/Date/prototype/getUTCSeconds/name.js create mode 100755 test/built-ins/Date/prototype/setDate/name.js create mode 100755 test/built-ins/Date/prototype/setFullYear/name.js create mode 100755 test/built-ins/Date/prototype/setHours/name.js create mode 100755 test/built-ins/Date/prototype/setMilliseconds/name.js create mode 100755 test/built-ins/Date/prototype/setMinutes/name.js create mode 100755 test/built-ins/Date/prototype/setMonth/name.js create mode 100755 test/built-ins/Date/prototype/setSeconds/name.js create mode 100755 test/built-ins/Date/prototype/setTime/name.js create mode 100755 test/built-ins/Date/prototype/setUTCDate/name.js create mode 100755 test/built-ins/Date/prototype/setUTCFullYear/name.js create mode 100755 test/built-ins/Date/prototype/setUTCHours/name.js create mode 100755 test/built-ins/Date/prototype/setUTCMilliseconds/name.js create mode 100755 test/built-ins/Date/prototype/setUTCMinutes/name.js create mode 100755 test/built-ins/Date/prototype/setUTCMonth/name.js create mode 100755 test/built-ins/Date/prototype/setUTCSeconds/name.js create mode 100755 test/built-ins/Date/prototype/toDateString/name.js create mode 100755 test/built-ins/Date/prototype/toISOString/name.js create mode 100755 test/built-ins/Date/prototype/toJSON/name.js create mode 100755 test/built-ins/Date/prototype/toLocaleDateString/name.js create mode 100755 test/built-ins/Date/prototype/toLocaleString/name.js create mode 100755 test/built-ins/Date/prototype/toLocaleTimeString/name.js create mode 100755 test/built-ins/Date/prototype/toString/name.js create mode 100755 test/built-ins/Date/prototype/toTimeString/name.js create mode 100755 test/built-ins/Date/prototype/toUTCString/name.js create mode 100755 test/built-ins/Date/prototype/valueOf/name.js create mode 100755 test/built-ins/Error/prototype/toString/length.js create mode 100755 test/built-ins/Error/prototype/toString/name.js create mode 100755 test/built-ins/Function/prototype/apply/name.js create mode 100755 test/built-ins/Function/prototype/bind/name.js create mode 100755 test/built-ins/Function/prototype/call/name.js create mode 100755 test/built-ins/Function/prototype/toString/name.js create mode 100755 test/built-ins/GeneratorPrototype/next/length.js create mode 100755 test/built-ins/GeneratorPrototype/next/name.js create mode 100755 test/built-ins/GeneratorPrototype/return/length.js create mode 100755 test/built-ins/GeneratorPrototype/return/name.js create mode 100755 test/built-ins/GeneratorPrototype/throw/length.js create mode 100755 test/built-ins/GeneratorPrototype/throw/name.js create mode 100755 test/built-ins/JSON/parse/name.js create mode 100755 test/built-ins/JSON/stringify/name.js create mode 100755 test/built-ins/Map/Symbol.species/length.js create mode 100755 test/built-ins/MapIteratorPrototype/next/length.js create mode 100755 test/built-ins/MapIteratorPrototype/next/name.js create mode 100755 test/built-ins/Math/abs/length.js create mode 100755 test/built-ins/Math/abs/name.js create mode 100755 test/built-ins/Math/acos/length.js create mode 100755 test/built-ins/Math/acos/name.js create mode 100755 test/built-ins/Math/acosh/name.js create mode 100755 test/built-ins/Math/asin/length.js create mode 100755 test/built-ins/Math/asin/name.js create mode 100755 test/built-ins/Math/asinh/name.js create mode 100755 test/built-ins/Math/atan/length.js create mode 100755 test/built-ins/Math/atan/name.js create mode 100755 test/built-ins/Math/atan2/length.js create mode 100755 test/built-ins/Math/atan2/name.js create mode 100755 test/built-ins/Math/atanh/name.js create mode 100755 test/built-ins/Math/cbrt/name.js create mode 100755 test/built-ins/Math/ceil/length.js create mode 100755 test/built-ins/Math/ceil/name.js create mode 100755 test/built-ins/Math/clz32/length.js create mode 100755 test/built-ins/Math/clz32/name.js create mode 100755 test/built-ins/Math/cos/length.js create mode 100755 test/built-ins/Math/cos/name.js create mode 100755 test/built-ins/Math/cosh/name.js create mode 100755 test/built-ins/Math/exp/length.js create mode 100755 test/built-ins/Math/exp/name.js create mode 100755 test/built-ins/Math/expm1/name.js create mode 100755 test/built-ins/Math/floor/length.js create mode 100755 test/built-ins/Math/floor/name.js create mode 100755 test/built-ins/Math/fround/length.js create mode 100755 test/built-ins/Math/fround/name.js create mode 100755 test/built-ins/Math/hypot/name.js create mode 100755 test/built-ins/Math/imul/name.js create mode 100755 test/built-ins/Math/log/length.js create mode 100755 test/built-ins/Math/log/name.js create mode 100755 test/built-ins/Math/log10/name.js create mode 100755 test/built-ins/Math/log1p/name.js create mode 100755 test/built-ins/Math/log2/name.js create mode 100755 test/built-ins/Math/max/name.js create mode 100755 test/built-ins/Math/min/name.js create mode 100755 test/built-ins/Math/pow/length.js create mode 100755 test/built-ins/Math/pow/name.js create mode 100755 test/built-ins/Math/random/length.js create mode 100755 test/built-ins/Math/random/name.js create mode 100755 test/built-ins/Math/round/length.js create mode 100755 test/built-ins/Math/round/name.js create mode 100755 test/built-ins/Math/sign/name.js create mode 100755 test/built-ins/Math/sin/length.js create mode 100755 test/built-ins/Math/sin/name.js create mode 100755 test/built-ins/Math/sinh/name.js create mode 100755 test/built-ins/Math/sqrt/length.js create mode 100755 test/built-ins/Math/sqrt/name.js create mode 100755 test/built-ins/Math/tan/length.js create mode 100755 test/built-ins/Math/tan/name.js create mode 100755 test/built-ins/Math/tanh/name.js create mode 100755 test/built-ins/Math/trunc/name.js create mode 100755 test/built-ins/Number/isFinite/length.js create mode 100755 test/built-ins/Number/isFinite/name.js create mode 100755 test/built-ins/Number/isInteger/length.js create mode 100755 test/built-ins/Number/isInteger/name.js create mode 100755 test/built-ins/Number/isNaN/length.js create mode 100755 test/built-ins/Number/isNaN/name.js create mode 100755 test/built-ins/Number/isSafeInteger/length.js create mode 100755 test/built-ins/Number/isSafeInteger/name.js create mode 100755 test/built-ins/Number/prototype/toExponential/length.js create mode 100755 test/built-ins/Number/prototype/toExponential/name.js create mode 100755 test/built-ins/Number/prototype/toFixed/name.js create mode 100755 test/built-ins/Number/prototype/toLocaleString/length.js create mode 100755 test/built-ins/Number/prototype/toLocaleString/name.js create mode 100755 test/built-ins/Number/prototype/toPrecision/length.js create mode 100755 test/built-ins/Number/prototype/toPrecision/name.js create mode 100755 test/built-ins/Number/prototype/toString/length.js create mode 100755 test/built-ins/Number/prototype/toString/name.js create mode 100755 test/built-ins/Number/prototype/valueOf/length.js create mode 100755 test/built-ins/Number/prototype/valueOf/name.js create mode 100755 test/built-ins/Object/create/name.js create mode 100755 test/built-ins/Object/defineProperties/name.js create mode 100755 test/built-ins/Object/defineProperty/name.js create mode 100755 test/built-ins/Object/freeze/name.js create mode 100755 test/built-ins/Object/getOwnPropertyDescriptor/name.js create mode 100755 test/built-ins/Object/getOwnPropertyNames/name.js create mode 100755 test/built-ins/Object/getOwnPropertySymbols/length.js create mode 100755 test/built-ins/Object/getOwnPropertySymbols/name.js create mode 100755 test/built-ins/Object/getPrototypeOf/name.js create mode 100755 test/built-ins/Object/isExtensible/name.js create mode 100755 test/built-ins/Object/isFrozen/name.js create mode 100755 test/built-ins/Object/isSealed/name.js create mode 100755 test/built-ins/Object/keys/name.js create mode 100755 test/built-ins/Object/preventExtensions/name.js create mode 100755 test/built-ins/Object/prototype/hasOwnProperty/name.js create mode 100755 test/built-ins/Object/prototype/isPrototypeOf/name.js create mode 100755 test/built-ins/Object/prototype/propertyIsEnumerable/name.js create mode 100755 test/built-ins/Object/prototype/toLocaleString/name.js create mode 100755 test/built-ins/Object/prototype/toString/name.js create mode 100755 test/built-ins/Object/prototype/valueOf/name.js create mode 100755 test/built-ins/Object/seal/name.js create mode 100755 test/built-ins/Promise/Symbol.species/length.js create mode 100755 test/built-ins/Proxy/revocable/length.js create mode 100755 test/built-ins/Proxy/revocable/name.js create mode 100755 test/built-ins/RegExp/Symbol.species/length.js create mode 100755 test/built-ins/RegExp/prototype/exec/name.js create mode 100755 test/built-ins/RegExp/prototype/flags/length.js create mode 100755 test/built-ins/RegExp/prototype/global/length.js create mode 100755 test/built-ins/RegExp/prototype/ignoreCase/length.js create mode 100755 test/built-ins/RegExp/prototype/multiline/length.js create mode 100755 test/built-ins/RegExp/prototype/source/length.js create mode 100755 test/built-ins/RegExp/prototype/sticky/length.js create mode 100755 test/built-ins/RegExp/prototype/test/name.js create mode 100755 test/built-ins/RegExp/prototype/toString/name.js create mode 100755 test/built-ins/Set/Symbol.species/length.js create mode 100755 test/built-ins/SetIteratorPrototype/next/length.js create mode 100755 test/built-ins/SetIteratorPrototype/next/name.js create mode 100755 test/built-ins/String/fromCharCode/name.js create mode 100755 test/built-ins/String/prototype/charAt/name.js create mode 100755 test/built-ins/String/prototype/charCodeAt/name.js create mode 100755 test/built-ins/String/prototype/concat/name.js create mode 100755 test/built-ins/String/prototype/indexOf/name.js create mode 100755 test/built-ins/String/prototype/lastIndexOf/name.js create mode 100755 test/built-ins/String/prototype/localeCompare/name.js create mode 100755 test/built-ins/String/prototype/match/name.js create mode 100755 test/built-ins/String/prototype/replace/name.js create mode 100755 test/built-ins/String/prototype/search/name.js create mode 100755 test/built-ins/String/prototype/slice/name.js create mode 100755 test/built-ins/String/prototype/split/name.js create mode 100755 test/built-ins/String/prototype/substring/name.js create mode 100755 test/built-ins/String/prototype/toLocaleLowerCase/name.js create mode 100755 test/built-ins/String/prototype/toLocaleUpperCase/name.js create mode 100755 test/built-ins/String/prototype/toLowerCase/name.js create mode 100755 test/built-ins/String/prototype/toString/name.js create mode 100755 test/built-ins/String/prototype/toUpperCase/name.js create mode 100755 test/built-ins/String/prototype/trim/name.js create mode 100755 test/built-ins/String/prototype/valueOf/length.js create mode 100755 test/built-ins/String/prototype/valueOf/name.js create mode 100755 test/built-ins/StringIteratorPrototype/next/length.js create mode 100755 test/built-ins/StringIteratorPrototype/next/name.js create mode 100755 test/built-ins/Symbol/for/length.js create mode 100755 test/built-ins/Symbol/for/name.js create mode 100755 test/built-ins/Symbol/keyFor/length.js create mode 100755 test/built-ins/Symbol/keyFor/name.js create mode 100755 test/built-ins/Symbol/prototype/toString/length.js create mode 100755 test/built-ins/Symbol/prototype/toString/name.js create mode 100755 test/built-ins/Symbol/prototype/valueOf/length.js create mode 100755 test/built-ins/Symbol/prototype/valueOf/name.js create mode 100755 test/built-ins/decodeURI/name.js create mode 100755 test/built-ins/decodeURIComponent/name.js create mode 100755 test/built-ins/encodeURI/name.js create mode 100755 test/built-ins/encodeURIComponent/name.js create mode 100755 test/built-ins/eval/name.js create mode 100755 test/built-ins/isFinite/name.js create mode 100755 test/built-ins/isNaN/name.js create mode 100755 test/built-ins/parseFloat/name.js create mode 100755 test/built-ins/parseInt/name.js diff --git a/test/built-ins/Array/Symbol.species/length.js b/test/built-ins/Array/Symbol.species/length.js new file mode 100755 index 0000000000..d50fe6190f --- /dev/null +++ b/test/built-ins/Array/Symbol.species/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.2.5 +description: > + get Array [ @@species ].length is 0. +info: > + get Array [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(Array, Symbol.species); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/Array/isArray/name.js b/test/built-ins/Array/isArray/name.js new file mode 100755 index 0000000000..bf4464f1d7 --- /dev/null +++ b/test/built-ins/Array/isArray/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.2.2 +description: > + Array.isArray.name is "isArray". +info: > + Array.isArray ( arg ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.isArray.name, "isArray"); + +verifyNotEnumerable(Array.isArray, "name"); +verifyNotWritable(Array.isArray, "name"); +verifyConfigurable(Array.isArray, "name"); diff --git a/test/built-ins/Array/prototype/concat/name.js b/test/built-ins/Array/prototype/concat/name.js new file mode 100755 index 0000000000..beac1601bc --- /dev/null +++ b/test/built-ins/Array/prototype/concat/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.1 +description: > + Array.prototype.concat.name is "concat". +info: > + Array.prototype.concat ( ...arguments ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.concat.name, "concat"); + +verifyNotEnumerable(Array.prototype.concat, "name"); +verifyNotWritable(Array.prototype.concat, "name"); +verifyConfigurable(Array.prototype.concat, "name"); diff --git a/test/built-ins/Array/prototype/every/name.js b/test/built-ins/Array/prototype/every/name.js new file mode 100755 index 0000000000..6ef522c10b --- /dev/null +++ b/test/built-ins/Array/prototype/every/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.5 +description: > + Array.prototype.every.name is "every". +info: > + Array.prototype.every ( callbackfn [ , thisArg] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.every.name, "every"); + +verifyNotEnumerable(Array.prototype.every, "name"); +verifyNotWritable(Array.prototype.every, "name"); +verifyConfigurable(Array.prototype.every, "name"); diff --git a/test/built-ins/Array/prototype/filter/name.js b/test/built-ins/Array/prototype/filter/name.js new file mode 100755 index 0000000000..3912493b0e --- /dev/null +++ b/test/built-ins/Array/prototype/filter/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.7 +description: > + Array.prototype.filter.name is "filter". +info: > + Array.prototype.filter ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.filter.name, "filter"); + +verifyNotEnumerable(Array.prototype.filter, "name"); +verifyNotWritable(Array.prototype.filter, "name"); +verifyConfigurable(Array.prototype.filter, "name"); diff --git a/test/built-ins/Array/prototype/forEach/name.js b/test/built-ins/Array/prototype/forEach/name.js new file mode 100755 index 0000000000..7d072517c2 --- /dev/null +++ b/test/built-ins/Array/prototype/forEach/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.10 +description: > + Array.prototype.forEach.name is "forEach". +info: > + Array.prototype.forEach ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.forEach.name, "forEach"); + +verifyNotEnumerable(Array.prototype.forEach, "name"); +verifyNotWritable(Array.prototype.forEach, "name"); +verifyConfigurable(Array.prototype.forEach, "name"); diff --git a/test/built-ins/Array/prototype/indexOf/name.js b/test/built-ins/Array/prototype/indexOf/name.js new file mode 100755 index 0000000000..a909f74662 --- /dev/null +++ b/test/built-ins/Array/prototype/indexOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.11 +description: > + Array.prototype.indexOf.name is "indexOf". +info: > + Array.prototype.indexOf ( searchElement [ , fromIndex ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.indexOf.name, "indexOf"); + +verifyNotEnumerable(Array.prototype.indexOf, "name"); +verifyNotWritable(Array.prototype.indexOf, "name"); +verifyConfigurable(Array.prototype.indexOf, "name"); diff --git a/test/built-ins/Array/prototype/join/name.js b/test/built-ins/Array/prototype/join/name.js new file mode 100755 index 0000000000..722bd42826 --- /dev/null +++ b/test/built-ins/Array/prototype/join/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.12 +description: > + Array.prototype.join.name is "join". +info: > + Array.prototype.join (separator) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.join.name, "join"); + +verifyNotEnumerable(Array.prototype.join, "name"); +verifyNotWritable(Array.prototype.join, "name"); +verifyConfigurable(Array.prototype.join, "name"); diff --git a/test/built-ins/Array/prototype/lastIndexOf/name.js b/test/built-ins/Array/prototype/lastIndexOf/name.js new file mode 100755 index 0000000000..a36863ed0b --- /dev/null +++ b/test/built-ins/Array/prototype/lastIndexOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.14 +description: > + Array.prototype.lastIndexOf.name is "lastIndexOf". +info: > + Array.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.lastIndexOf.name, "lastIndexOf"); + +verifyNotEnumerable(Array.prototype.lastIndexOf, "name"); +verifyNotWritable(Array.prototype.lastIndexOf, "name"); +verifyConfigurable(Array.prototype.lastIndexOf, "name"); diff --git a/test/built-ins/Array/prototype/map/name.js b/test/built-ins/Array/prototype/map/name.js new file mode 100755 index 0000000000..7869f819bc --- /dev/null +++ b/test/built-ins/Array/prototype/map/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.15 +description: > + Array.prototype.map.name is "map". +info: > + Array.prototype.map ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.map.name, "map"); + +verifyNotEnumerable(Array.prototype.map, "name"); +verifyNotWritable(Array.prototype.map, "name"); +verifyConfigurable(Array.prototype.map, "name"); diff --git a/test/built-ins/Array/prototype/pop/name.js b/test/built-ins/Array/prototype/pop/name.js new file mode 100755 index 0000000000..6facd522e4 --- /dev/null +++ b/test/built-ins/Array/prototype/pop/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.16 +description: > + Array.prototype.pop.name is "pop". +info: > + Array.prototype.pop ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.pop.name, "pop"); + +verifyNotEnumerable(Array.prototype.pop, "name"); +verifyNotWritable(Array.prototype.pop, "name"); +verifyConfigurable(Array.prototype.pop, "name"); diff --git a/test/built-ins/Array/prototype/push/name.js b/test/built-ins/Array/prototype/push/name.js new file mode 100755 index 0000000000..296e9ffdf9 --- /dev/null +++ b/test/built-ins/Array/prototype/push/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.17 +description: > + Array.prototype.push.name is "push". +info: > + Array.prototype.push ( ...items ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.push.name, "push"); + +verifyNotEnumerable(Array.prototype.push, "name"); +verifyNotWritable(Array.prototype.push, "name"); +verifyConfigurable(Array.prototype.push, "name"); diff --git a/test/built-ins/Array/prototype/reduce/name.js b/test/built-ins/Array/prototype/reduce/name.js new file mode 100755 index 0000000000..db8087ab26 --- /dev/null +++ b/test/built-ins/Array/prototype/reduce/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.18 +description: > + Array.prototype.reduce.name is "reduce". +info: > + Array.prototype.reduce ( callbackfn [ , initialValue ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.reduce.name, "reduce"); + +verifyNotEnumerable(Array.prototype.reduce, "name"); +verifyNotWritable(Array.prototype.reduce, "name"); +verifyConfigurable(Array.prototype.reduce, "name"); diff --git a/test/built-ins/Array/prototype/reduceRight/name.js b/test/built-ins/Array/prototype/reduceRight/name.js new file mode 100755 index 0000000000..997d3091d8 --- /dev/null +++ b/test/built-ins/Array/prototype/reduceRight/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.19 +description: > + Array.prototype.reduceRight.name is "reduceRight". +info: > + Array.prototype.reduceRight ( callbackfn [ , initialValue ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.reduceRight.name, "reduceRight"); + +verifyNotEnumerable(Array.prototype.reduceRight, "name"); +verifyNotWritable(Array.prototype.reduceRight, "name"); +verifyConfigurable(Array.prototype.reduceRight, "name"); diff --git a/test/built-ins/Array/prototype/reverse/name.js b/test/built-ins/Array/prototype/reverse/name.js new file mode 100755 index 0000000000..a1be6222c3 --- /dev/null +++ b/test/built-ins/Array/prototype/reverse/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.20 +description: > + Array.prototype.reverse.name is "reverse". +info: > + Array.prototype.reverse ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.reverse.name, "reverse"); + +verifyNotEnumerable(Array.prototype.reverse, "name"); +verifyNotWritable(Array.prototype.reverse, "name"); +verifyConfigurable(Array.prototype.reverse, "name"); diff --git a/test/built-ins/Array/prototype/shift/name.js b/test/built-ins/Array/prototype/shift/name.js new file mode 100755 index 0000000000..0f0700280f --- /dev/null +++ b/test/built-ins/Array/prototype/shift/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.21 +description: > + Array.prototype.shift.name is "shift". +info: > + Array.prototype.shift ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.shift.name, "shift"); + +verifyNotEnumerable(Array.prototype.shift, "name"); +verifyNotWritable(Array.prototype.shift, "name"); +verifyConfigurable(Array.prototype.shift, "name"); diff --git a/test/built-ins/Array/prototype/slice/name.js b/test/built-ins/Array/prototype/slice/name.js new file mode 100755 index 0000000000..1315400d38 --- /dev/null +++ b/test/built-ins/Array/prototype/slice/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.22 +description: > + Array.prototype.slice.name is "slice". +info: > + Array.prototype.slice (start, end) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.slice.name, "slice"); + +verifyNotEnumerable(Array.prototype.slice, "name"); +verifyNotWritable(Array.prototype.slice, "name"); +verifyConfigurable(Array.prototype.slice, "name"); diff --git a/test/built-ins/Array/prototype/some/name.js b/test/built-ins/Array/prototype/some/name.js new file mode 100755 index 0000000000..c6b1d031a8 --- /dev/null +++ b/test/built-ins/Array/prototype/some/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.23 +description: > + Array.prototype.some.name is "some". +info: > + Array.prototype.some ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.some.name, "some"); + +verifyNotEnumerable(Array.prototype.some, "name"); +verifyNotWritable(Array.prototype.some, "name"); +verifyConfigurable(Array.prototype.some, "name"); diff --git a/test/built-ins/Array/prototype/sort/name.js b/test/built-ins/Array/prototype/sort/name.js new file mode 100755 index 0000000000..d7b9905a95 --- /dev/null +++ b/test/built-ins/Array/prototype/sort/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.24 +description: > + Array.prototype.sort.name is "sort". +info: > + Array.prototype.sort (comparefn) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.sort.name, "sort"); + +verifyNotEnumerable(Array.prototype.sort, "name"); +verifyNotWritable(Array.prototype.sort, "name"); +verifyConfigurable(Array.prototype.sort, "name"); diff --git a/test/built-ins/Array/prototype/splice/name.js b/test/built-ins/Array/prototype/splice/name.js new file mode 100755 index 0000000000..7dd3bf5e79 --- /dev/null +++ b/test/built-ins/Array/prototype/splice/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.25 +description: > + Array.prototype.splice.name is "splice". +info: > + Array.prototype.splice (start, deleteCount , ...items ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.splice.name, "splice"); + +verifyNotEnumerable(Array.prototype.splice, "name"); +verifyNotWritable(Array.prototype.splice, "name"); +verifyConfigurable(Array.prototype.splice, "name"); diff --git a/test/built-ins/Array/prototype/toLocaleString/name.js b/test/built-ins/Array/prototype/toLocaleString/name.js new file mode 100755 index 0000000000..581819b6f8 --- /dev/null +++ b/test/built-ins/Array/prototype/toLocaleString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.26 +description: > + Array.prototype.toLocaleString.name is "toLocaleString". +info: > + Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.toLocaleString.name, "toLocaleString"); + +verifyNotEnumerable(Array.prototype.toLocaleString, "name"); +verifyNotWritable(Array.prototype.toLocaleString, "name"); +verifyConfigurable(Array.prototype.toLocaleString, "name"); diff --git a/test/built-ins/Array/prototype/toString/name.js b/test/built-ins/Array/prototype/toString/name.js new file mode 100755 index 0000000000..efb07edeec --- /dev/null +++ b/test/built-ins/Array/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.27 +description: > + Array.prototype.toString.name is "toString". +info: > + Array.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.toString.name, "toString"); + +verifyNotEnumerable(Array.prototype.toString, "name"); +verifyNotWritable(Array.prototype.toString, "name"); +verifyConfigurable(Array.prototype.toString, "name"); diff --git a/test/built-ins/Array/prototype/unshift/name.js b/test/built-ins/Array/prototype/unshift/name.js new file mode 100755 index 0000000000..536c78c5e6 --- /dev/null +++ b/test/built-ins/Array/prototype/unshift/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.3.28 +description: > + Array.prototype.unshift.name is "unshift". +info: > + Array.prototype.unshift ( ...items ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Array.prototype.unshift.name, "unshift"); + +verifyNotEnumerable(Array.prototype.unshift, "name"); +verifyNotWritable(Array.prototype.unshift, "name"); +verifyConfigurable(Array.prototype.unshift, "name"); diff --git a/test/built-ins/ArrayBuffer/Symbol.species/length.js b/test/built-ins/ArrayBuffer/Symbol.species/length.js new file mode 100755 index 0000000000..fe55fc4a39 --- /dev/null +++ b/test/built-ins/ArrayBuffer/Symbol.species/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.1.3.3 +description: > + get ArrayBuffer [ @@species ].length is 0. +info: > + get ArrayBuffer [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/ArrayBuffer/isView/length.js b/test/built-ins/ArrayBuffer/isView/length.js new file mode 100755 index 0000000000..f08bd16628 --- /dev/null +++ b/test/built-ins/ArrayBuffer/isView/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.1.3.1 +description: > + ArrayBuffer.isView.length is 1. +info: > + ArrayBuffer.isView ( arg ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ArrayBuffer.isView.length, 1); + +verifyNotEnumerable(ArrayBuffer.isView, "length"); +verifyNotWritable(ArrayBuffer.isView, "length"); +verifyConfigurable(ArrayBuffer.isView, "length"); diff --git a/test/built-ins/ArrayBuffer/isView/name.js b/test/built-ins/ArrayBuffer/isView/name.js new file mode 100755 index 0000000000..2db379d2eb --- /dev/null +++ b/test/built-ins/ArrayBuffer/isView/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.1.3.1 +description: > + ArrayBuffer.isView.name is "isView". +info: > + ArrayBuffer.isView ( arg ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ArrayBuffer.isView.name, "isView"); + +verifyNotEnumerable(ArrayBuffer.isView, "name"); +verifyNotWritable(ArrayBuffer.isView, "name"); +verifyConfigurable(ArrayBuffer.isView, "name"); diff --git a/test/built-ins/ArrayBuffer/prototype/byteLength/length.js b/test/built-ins/ArrayBuffer/prototype/byteLength/length.js new file mode 100755 index 0000000000..942f322f62 --- /dev/null +++ b/test/built-ins/ArrayBuffer/prototype/byteLength/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.1.4.1 +description: > + get ArrayBuffer.prototype.byteLength.length is 0. +info: > + get ArrayBuffer.prototype.byteLength + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/ArrayIteratorPrototype/next/length.js b/test/built-ins/ArrayIteratorPrototype/next/length.js new file mode 100755 index 0000000000..dfef2e6c19 --- /dev/null +++ b/test/built-ins/ArrayIteratorPrototype/next/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.5.2.1 +description: > + %ArrayIteratorPrototype%.next.length is 0. +info: > + %ArrayIteratorPrototype%.next( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]()); + +assert.sameValue(ArrayIteratorProto.next.length, 0); + +verifyNotEnumerable(ArrayIteratorProto.next, "length"); +verifyNotWritable(ArrayIteratorProto.next, "length"); +verifyConfigurable(ArrayIteratorProto.next, "length"); diff --git a/test/built-ins/ArrayIteratorPrototype/next/name.js b/test/built-ins/ArrayIteratorPrototype/next/name.js new file mode 100755 index 0000000000..02fc021255 --- /dev/null +++ b/test/built-ins/ArrayIteratorPrototype/next/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.1.5.2.1 +description: > + %ArrayIteratorPrototype%.next.name is "next". +info: > + %ArrayIteratorPrototype%.next( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]()); + +assert.sameValue(ArrayIteratorProto.next.name, "next"); + +verifyNotEnumerable(ArrayIteratorProto.next, "name"); +verifyNotWritable(ArrayIteratorProto.next, "name"); +verifyConfigurable(ArrayIteratorProto.next, "name"); diff --git a/test/built-ins/Boolean/prototype/toString/length.js b/test/built-ins/Boolean/prototype/toString/length.js new file mode 100755 index 0000000000..7b9efa8597 --- /dev/null +++ b/test/built-ins/Boolean/prototype/toString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.3.3.2 +description: > + Boolean.prototype.toString.length is 0. +info: > + Boolean.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Boolean.prototype.toString.length, 0); + +verifyNotEnumerable(Boolean.prototype.toString, "length"); +verifyNotWritable(Boolean.prototype.toString, "length"); +verifyConfigurable(Boolean.prototype.toString, "length"); diff --git a/test/built-ins/Boolean/prototype/toString/name.js b/test/built-ins/Boolean/prototype/toString/name.js new file mode 100755 index 0000000000..799242fbdf --- /dev/null +++ b/test/built-ins/Boolean/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.3.3.2 +description: > + Boolean.prototype.toString.name is "toString". +info: > + Boolean.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Boolean.prototype.toString.name, "toString"); + +verifyNotEnumerable(Boolean.prototype.toString, "name"); +verifyNotWritable(Boolean.prototype.toString, "name"); +verifyConfigurable(Boolean.prototype.toString, "name"); diff --git a/test/built-ins/Boolean/prototype/valueOf/length.js b/test/built-ins/Boolean/prototype/valueOf/length.js new file mode 100755 index 0000000000..2db7334326 --- /dev/null +++ b/test/built-ins/Boolean/prototype/valueOf/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.3.3.3 +description: > + Boolean.prototype.valueOf.length is 0. +info: > + Boolean.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Boolean.prototype.valueOf.length, 0); + +verifyNotEnumerable(Boolean.prototype.valueOf, "length"); +verifyNotWritable(Boolean.prototype.valueOf, "length"); +verifyConfigurable(Boolean.prototype.valueOf, "length"); diff --git a/test/built-ins/Boolean/prototype/valueOf/name.js b/test/built-ins/Boolean/prototype/valueOf/name.js new file mode 100755 index 0000000000..c8c735064e --- /dev/null +++ b/test/built-ins/Boolean/prototype/valueOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.3.3.3 +description: > + Boolean.prototype.valueOf.name is "valueOf". +info: > + Boolean.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Boolean.prototype.valueOf.name, "valueOf"); + +verifyNotEnumerable(Boolean.prototype.valueOf, "name"); +verifyNotWritable(Boolean.prototype.valueOf, "name"); +verifyConfigurable(Boolean.prototype.valueOf, "name"); diff --git a/test/built-ins/DataView/prototype/buffer/length.js b/test/built-ins/DataView/prototype/buffer/length.js new file mode 100755 index 0000000000..6d71e9f6c5 --- /dev/null +++ b/test/built-ins/DataView/prototype/buffer/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.1 +description: > + get DataView.prototype.buffer.length is 0. +info: > + get DataView.prototype.buffer + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "buffer"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/DataView/prototype/byteLength/length.js b/test/built-ins/DataView/prototype/byteLength/length.js new file mode 100755 index 0000000000..da9e6af88e --- /dev/null +++ b/test/built-ins/DataView/prototype/byteLength/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.2 +description: > + get DataView.prototype.byteLength.length is 0. +info: > + get DataView.prototype.byteLength + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteLength"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/DataView/prototype/byteOffset/length.js b/test/built-ins/DataView/prototype/byteOffset/length.js new file mode 100755 index 0000000000..d6290c82bf --- /dev/null +++ b/test/built-ins/DataView/prototype/byteOffset/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.3 +description: > + get DataView.prototype.byteOffset.length is 0. +info: > + get DataView.prototype.byteOffset + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteOffset"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/DataView/prototype/getFloat32/length.js b/test/built-ins/DataView/prototype/getFloat32/length.js new file mode 100755 index 0000000000..e349ab252e --- /dev/null +++ b/test/built-ins/DataView/prototype/getFloat32/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.getFloat32.length is 1. +info: > + DataView.prototype.getFloat32 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getFloat32.length, 1); + +verifyNotEnumerable(DataView.prototype.getFloat32, "length"); +verifyNotWritable(DataView.prototype.getFloat32, "length"); +verifyConfigurable(DataView.prototype.getFloat32, "length"); diff --git a/test/built-ins/DataView/prototype/getFloat32/name.js b/test/built-ins/DataView/prototype/getFloat32/name.js new file mode 100755 index 0000000000..b0afb76fba --- /dev/null +++ b/test/built-ins/DataView/prototype/getFloat32/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.5 +description: > + DataView.prototype.getFloat32.name is "getFloat32". +info: > + DataView.prototype.getFloat32 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getFloat32.name, "getFloat32"); + +verifyNotEnumerable(DataView.prototype.getFloat32, "name"); +verifyNotWritable(DataView.prototype.getFloat32, "name"); +verifyConfigurable(DataView.prototype.getFloat32, "name"); diff --git a/test/built-ins/DataView/prototype/getFloat64/length.js b/test/built-ins/DataView/prototype/getFloat64/length.js new file mode 100755 index 0000000000..5e2cb57f8c --- /dev/null +++ b/test/built-ins/DataView/prototype/getFloat64/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.getFloat64.length is 1. +info: > + DataView.prototype.getFloat64 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getFloat64.length, 1); + +verifyNotEnumerable(DataView.prototype.getFloat64, "length"); +verifyNotWritable(DataView.prototype.getFloat64, "length"); +verifyConfigurable(DataView.prototype.getFloat64, "length"); diff --git a/test/built-ins/DataView/prototype/getFloat64/name.js b/test/built-ins/DataView/prototype/getFloat64/name.js new file mode 100755 index 0000000000..7d7301c4fd --- /dev/null +++ b/test/built-ins/DataView/prototype/getFloat64/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.6 +description: > + DataView.prototype.getFloat64.name is "getFloat64". +info: > + DataView.prototype.getFloat64 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getFloat64.name, "getFloat64"); + +verifyNotEnumerable(DataView.prototype.getFloat64, "name"); +verifyNotWritable(DataView.prototype.getFloat64, "name"); +verifyConfigurable(DataView.prototype.getFloat64, "name"); diff --git a/test/built-ins/DataView/prototype/getInt16/length.js b/test/built-ins/DataView/prototype/getInt16/length.js new file mode 100755 index 0000000000..cf0e589a76 --- /dev/null +++ b/test/built-ins/DataView/prototype/getInt16/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.getInt16.length is 1. +info: > + DataView.prototype.getInt16 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getInt16.length, 1); + +verifyNotEnumerable(DataView.prototype.getInt16, "length"); +verifyNotWritable(DataView.prototype.getInt16, "length"); +verifyConfigurable(DataView.prototype.getInt16, "length"); diff --git a/test/built-ins/DataView/prototype/getInt16/name.js b/test/built-ins/DataView/prototype/getInt16/name.js new file mode 100755 index 0000000000..b61bb435e9 --- /dev/null +++ b/test/built-ins/DataView/prototype/getInt16/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.8 +description: > + DataView.prototype.getInt16.name is "getInt16". +info: > + DataView.prototype.getInt16 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getInt16.name, "getInt16"); + +verifyNotEnumerable(DataView.prototype.getInt16, "name"); +verifyNotWritable(DataView.prototype.getInt16, "name"); +verifyConfigurable(DataView.prototype.getInt16, "name"); diff --git a/test/built-ins/DataView/prototype/getInt32/length.js b/test/built-ins/DataView/prototype/getInt32/length.js new file mode 100755 index 0000000000..e8651ec7f7 --- /dev/null +++ b/test/built-ins/DataView/prototype/getInt32/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.getInt32.length is 1. +info: > + DataView.prototype.getInt32 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getInt32.length, 1); + +verifyNotEnumerable(DataView.prototype.getInt32, "length"); +verifyNotWritable(DataView.prototype.getInt32, "length"); +verifyConfigurable(DataView.prototype.getInt32, "length"); diff --git a/test/built-ins/DataView/prototype/getInt32/name.js b/test/built-ins/DataView/prototype/getInt32/name.js new file mode 100755 index 0000000000..1e1e408c04 --- /dev/null +++ b/test/built-ins/DataView/prototype/getInt32/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.9 +description: > + DataView.prototype.getInt32.name is "getInt32". +info: > + DataView.prototype.getInt32 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getInt32.name, "getInt32"); + +verifyNotEnumerable(DataView.prototype.getInt32, "name"); +verifyNotWritable(DataView.prototype.getInt32, "name"); +verifyConfigurable(DataView.prototype.getInt32, "name"); diff --git a/test/built-ins/DataView/prototype/getInt8/length.js b/test/built-ins/DataView/prototype/getInt8/length.js new file mode 100755 index 0000000000..c1ca98b455 --- /dev/null +++ b/test/built-ins/DataView/prototype/getInt8/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.7 +description: > + DataView.prototype.getInt8.length is 1. +info: > + DataView.prototype.getInt8 ( byteOffset ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getInt8.length, 1); + +verifyNotEnumerable(DataView.prototype.getInt8, "length"); +verifyNotWritable(DataView.prototype.getInt8, "length"); +verifyConfigurable(DataView.prototype.getInt8, "length"); diff --git a/test/built-ins/DataView/prototype/getInt8/name.js b/test/built-ins/DataView/prototype/getInt8/name.js new file mode 100755 index 0000000000..8fb9493a54 --- /dev/null +++ b/test/built-ins/DataView/prototype/getInt8/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.7 +description: > + DataView.prototype.getInt8.name is "getInt8". +info: > + DataView.prototype.getInt8 ( byteOffset ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getInt8.name, "getInt8"); + +verifyNotEnumerable(DataView.prototype.getInt8, "name"); +verifyNotWritable(DataView.prototype.getInt8, "name"); +verifyConfigurable(DataView.prototype.getInt8, "name"); diff --git a/test/built-ins/DataView/prototype/getUint16/length.js b/test/built-ins/DataView/prototype/getUint16/length.js new file mode 100755 index 0000000000..f092ec2b5b --- /dev/null +++ b/test/built-ins/DataView/prototype/getUint16/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.getUint16.length is 1. +info: > + DataView.prototype.getUint16 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getUint16.length, 1); + +verifyNotEnumerable(DataView.prototype.getUint16, "length"); +verifyNotWritable(DataView.prototype.getUint16, "length"); +verifyConfigurable(DataView.prototype.getUint16, "length"); diff --git a/test/built-ins/DataView/prototype/getUint16/name.js b/test/built-ins/DataView/prototype/getUint16/name.js new file mode 100755 index 0000000000..754db7d793 --- /dev/null +++ b/test/built-ins/DataView/prototype/getUint16/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.11 +description: > + DataView.prototype.getUint16.name is "getUint16". +info: > + DataView.prototype.getUint16 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getUint16.name, "getUint16"); + +verifyNotEnumerable(DataView.prototype.getUint16, "name"); +verifyNotWritable(DataView.prototype.getUint16, "name"); +verifyConfigurable(DataView.prototype.getUint16, "name"); diff --git a/test/built-ins/DataView/prototype/getUint32/length.js b/test/built-ins/DataView/prototype/getUint32/length.js new file mode 100755 index 0000000000..fd7f821218 --- /dev/null +++ b/test/built-ins/DataView/prototype/getUint32/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.getUint32.length is 1. +info: > + DataView.prototype.getUint32 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getUint32.length, 1); + +verifyNotEnumerable(DataView.prototype.getUint32, "length"); +verifyNotWritable(DataView.prototype.getUint32, "length"); +verifyConfigurable(DataView.prototype.getUint32, "length"); diff --git a/test/built-ins/DataView/prototype/getUint32/name.js b/test/built-ins/DataView/prototype/getUint32/name.js new file mode 100755 index 0000000000..fc022c26da --- /dev/null +++ b/test/built-ins/DataView/prototype/getUint32/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.12 +description: > + DataView.prototype.getUint32.name is "getUint32". +info: > + DataView.prototype.getUint32 ( byteOffset [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getUint32.name, "getUint32"); + +verifyNotEnumerable(DataView.prototype.getUint32, "name"); +verifyNotWritable(DataView.prototype.getUint32, "name"); +verifyConfigurable(DataView.prototype.getUint32, "name"); diff --git a/test/built-ins/DataView/prototype/getUint8/length.js b/test/built-ins/DataView/prototype/getUint8/length.js new file mode 100755 index 0000000000..cce0cd844a --- /dev/null +++ b/test/built-ins/DataView/prototype/getUint8/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.10 +description: > + DataView.prototype.getUint8.length is 1. +info: > + DataView.prototype.getUint8 ( byteOffset ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getUint8.length, 1); + +verifyNotEnumerable(DataView.prototype.getUint8, "length"); +verifyNotWritable(DataView.prototype.getUint8, "length"); +verifyConfigurable(DataView.prototype.getUint8, "length"); diff --git a/test/built-ins/DataView/prototype/getUint8/name.js b/test/built-ins/DataView/prototype/getUint8/name.js new file mode 100755 index 0000000000..269197af46 --- /dev/null +++ b/test/built-ins/DataView/prototype/getUint8/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.10 +description: > + DataView.prototype.getUint8.name is "getUint8". +info: > + DataView.prototype.getUint8 ( byteOffset ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.getUint8.name, "getUint8"); + +verifyNotEnumerable(DataView.prototype.getUint8, "name"); +verifyNotWritable(DataView.prototype.getUint8, "name"); +verifyConfigurable(DataView.prototype.getUint8, "name"); diff --git a/test/built-ins/DataView/prototype/setFloat32/length.js b/test/built-ins/DataView/prototype/setFloat32/length.js new file mode 100755 index 0000000000..832fd73590 --- /dev/null +++ b/test/built-ins/DataView/prototype/setFloat32/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.setFloat32.length is 2. +info: > + DataView.prototype.setFloat32 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setFloat32.length, 2); + +verifyNotEnumerable(DataView.prototype.setFloat32, "length"); +verifyNotWritable(DataView.prototype.setFloat32, "length"); +verifyConfigurable(DataView.prototype.setFloat32, "length"); diff --git a/test/built-ins/DataView/prototype/setFloat32/name.js b/test/built-ins/DataView/prototype/setFloat32/name.js new file mode 100755 index 0000000000..6435989ebd --- /dev/null +++ b/test/built-ins/DataView/prototype/setFloat32/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.13 +description: > + DataView.prototype.setFloat32.name is "setFloat32". +info: > + DataView.prototype.setFloat32 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setFloat32.name, "setFloat32"); + +verifyNotEnumerable(DataView.prototype.setFloat32, "name"); +verifyNotWritable(DataView.prototype.setFloat32, "name"); +verifyConfigurable(DataView.prototype.setFloat32, "name"); diff --git a/test/built-ins/DataView/prototype/setFloat64/length.js b/test/built-ins/DataView/prototype/setFloat64/length.js new file mode 100755 index 0000000000..df566d6d3a --- /dev/null +++ b/test/built-ins/DataView/prototype/setFloat64/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.setFloat64.length is 2. +info: > + DataView.prototype.setFloat64 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setFloat64.length, 2); + +verifyNotEnumerable(DataView.prototype.setFloat64, "length"); +verifyNotWritable(DataView.prototype.setFloat64, "length"); +verifyConfigurable(DataView.prototype.setFloat64, "length"); diff --git a/test/built-ins/DataView/prototype/setFloat64/name.js b/test/built-ins/DataView/prototype/setFloat64/name.js new file mode 100755 index 0000000000..ffacf4048c --- /dev/null +++ b/test/built-ins/DataView/prototype/setFloat64/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.14 +description: > + DataView.prototype.setFloat64.name is "setFloat64". +info: > + DataView.prototype.setFloat64 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setFloat64.name, "setFloat64"); + +verifyNotEnumerable(DataView.prototype.setFloat64, "name"); +verifyNotWritable(DataView.prototype.setFloat64, "name"); +verifyConfigurable(DataView.prototype.setFloat64, "name"); diff --git a/test/built-ins/DataView/prototype/setInt16/length.js b/test/built-ins/DataView/prototype/setInt16/length.js new file mode 100755 index 0000000000..7685da563e --- /dev/null +++ b/test/built-ins/DataView/prototype/setInt16/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.setInt16.length is 2. +info: > + DataView.prototype.setInt16 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setInt16.length, 2); + +verifyNotEnumerable(DataView.prototype.setInt16, "length"); +verifyNotWritable(DataView.prototype.setInt16, "length"); +verifyConfigurable(DataView.prototype.setInt16, "length"); diff --git a/test/built-ins/DataView/prototype/setInt16/name.js b/test/built-ins/DataView/prototype/setInt16/name.js new file mode 100755 index 0000000000..44591dd4a2 --- /dev/null +++ b/test/built-ins/DataView/prototype/setInt16/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.16 +description: > + DataView.prototype.setInt16.name is "setInt16". +info: > + DataView.prototype.setInt16 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setInt16.name, "setInt16"); + +verifyNotEnumerable(DataView.prototype.setInt16, "name"); +verifyNotWritable(DataView.prototype.setInt16, "name"); +verifyConfigurable(DataView.prototype.setInt16, "name"); diff --git a/test/built-ins/DataView/prototype/setInt32/length.js b/test/built-ins/DataView/prototype/setInt32/length.js new file mode 100755 index 0000000000..5150739dfb --- /dev/null +++ b/test/built-ins/DataView/prototype/setInt32/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.setInt32.length is 2. +info: > + DataView.prototype.setInt32 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setInt32.length, 2); + +verifyNotEnumerable(DataView.prototype.setInt32, "length"); +verifyNotWritable(DataView.prototype.setInt32, "length"); +verifyConfigurable(DataView.prototype.setInt32, "length"); diff --git a/test/built-ins/DataView/prototype/setInt32/name.js b/test/built-ins/DataView/prototype/setInt32/name.js new file mode 100755 index 0000000000..e62e1bf463 --- /dev/null +++ b/test/built-ins/DataView/prototype/setInt32/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.17 +description: > + DataView.prototype.setInt32.name is "setInt32". +info: > + DataView.prototype.setInt32 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setInt32.name, "setInt32"); + +verifyNotEnumerable(DataView.prototype.setInt32, "name"); +verifyNotWritable(DataView.prototype.setInt32, "name"); +verifyConfigurable(DataView.prototype.setInt32, "name"); diff --git a/test/built-ins/DataView/prototype/setInt8/length.js b/test/built-ins/DataView/prototype/setInt8/length.js new file mode 100755 index 0000000000..8120cd2117 --- /dev/null +++ b/test/built-ins/DataView/prototype/setInt8/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.15 +description: > + DataView.prototype.setInt8.length is 2. +info: > + DataView.prototype.setInt8 ( byteOffset, value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setInt8.length, 2); + +verifyNotEnumerable(DataView.prototype.setInt8, "length"); +verifyNotWritable(DataView.prototype.setInt8, "length"); +verifyConfigurable(DataView.prototype.setInt8, "length"); diff --git a/test/built-ins/DataView/prototype/setInt8/name.js b/test/built-ins/DataView/prototype/setInt8/name.js new file mode 100755 index 0000000000..e0c1eafec3 --- /dev/null +++ b/test/built-ins/DataView/prototype/setInt8/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.15 +description: > + DataView.prototype.setInt8.name is "setInt8". +info: > + DataView.prototype.setInt8 ( byteOffset, value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setInt8.name, "setInt8"); + +verifyNotEnumerable(DataView.prototype.setInt8, "name"); +verifyNotWritable(DataView.prototype.setInt8, "name"); +verifyConfigurable(DataView.prototype.setInt8, "name"); diff --git a/test/built-ins/DataView/prototype/setUint16/length.js b/test/built-ins/DataView/prototype/setUint16/length.js new file mode 100755 index 0000000000..541d8f1f17 --- /dev/null +++ b/test/built-ins/DataView/prototype/setUint16/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.setUint16.length is 2. +info: > + DataView.prototype.setUint16 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setUint16.length, 2); + +verifyNotEnumerable(DataView.prototype.setUint16, "length"); +verifyNotWritable(DataView.prototype.setUint16, "length"); +verifyConfigurable(DataView.prototype.setUint16, "length"); diff --git a/test/built-ins/DataView/prototype/setUint16/name.js b/test/built-ins/DataView/prototype/setUint16/name.js new file mode 100755 index 0000000000..957241547b --- /dev/null +++ b/test/built-ins/DataView/prototype/setUint16/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.19 +description: > + DataView.prototype.setUint16.name is "setUint16". +info: > + DataView.prototype.setUint16 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setUint16.name, "setUint16"); + +verifyNotEnumerable(DataView.prototype.setUint16, "name"); +verifyNotWritable(DataView.prototype.setUint16, "name"); +verifyConfigurable(DataView.prototype.setUint16, "name"); diff --git a/test/built-ins/DataView/prototype/setUint32/length.js b/test/built-ins/DataView/prototype/setUint32/length.js new file mode 100755 index 0000000000..ebbf330cfe --- /dev/null +++ b/test/built-ins/DataView/prototype/setUint32/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es7id: pending +description: > + DataView.prototype.setUint32.length is 2. +info: > + DataView.prototype.setUint32 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description. Optional parameters + (which are indicated with brackets: [ ]) or rest parameters (which + are shown using the form «...name») are not included in the default + argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setUint32.length, 2); + +verifyNotEnumerable(DataView.prototype.setUint32, "length"); +verifyNotWritable(DataView.prototype.setUint32, "length"); +verifyConfigurable(DataView.prototype.setUint32, "length"); diff --git a/test/built-ins/DataView/prototype/setUint32/name.js b/test/built-ins/DataView/prototype/setUint32/name.js new file mode 100755 index 0000000000..dda373f1f0 --- /dev/null +++ b/test/built-ins/DataView/prototype/setUint32/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.20 +description: > + DataView.prototype.setUint32.name is "setUint32". +info: > + DataView.prototype.setUint32 ( byteOffset, value [ , littleEndian ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setUint32.name, "setUint32"); + +verifyNotEnumerable(DataView.prototype.setUint32, "name"); +verifyNotWritable(DataView.prototype.setUint32, "name"); +verifyConfigurable(DataView.prototype.setUint32, "name"); diff --git a/test/built-ins/DataView/prototype/setUint8/length.js b/test/built-ins/DataView/prototype/setUint8/length.js new file mode 100755 index 0000000000..6c868a7da7 --- /dev/null +++ b/test/built-ins/DataView/prototype/setUint8/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.18 +description: > + DataView.prototype.setUint8.length is 2. +info: > + DataView.prototype.setUint8 ( byteOffset, value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setUint8.length, 2); + +verifyNotEnumerable(DataView.prototype.setUint8, "length"); +verifyNotWritable(DataView.prototype.setUint8, "length"); +verifyConfigurable(DataView.prototype.setUint8, "length"); diff --git a/test/built-ins/DataView/prototype/setUint8/name.js b/test/built-ins/DataView/prototype/setUint8/name.js new file mode 100755 index 0000000000..8333822b11 --- /dev/null +++ b/test/built-ins/DataView/prototype/setUint8/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.2.4.18 +description: > + DataView.prototype.setUint8.name is "setUint8". +info: > + DataView.prototype.setUint8 ( byteOffset, value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(DataView.prototype.setUint8.name, "setUint8"); + +verifyNotEnumerable(DataView.prototype.setUint8, "name"); +verifyNotWritable(DataView.prototype.setUint8, "name"); +verifyConfigurable(DataView.prototype.setUint8, "name"); diff --git a/test/built-ins/Date/UTC/name.js b/test/built-ins/Date/UTC/name.js new file mode 100755 index 0000000000..4f53387c1b --- /dev/null +++ b/test/built-ins/Date/UTC/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.3.4 +description: > + Date.UTC.name is "UTC". +info: > + Date.UTC ( year, month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.UTC.name, "UTC"); + +verifyNotEnumerable(Date.UTC, "name"); +verifyNotWritable(Date.UTC, "name"); +verifyConfigurable(Date.UTC, "name"); diff --git a/test/built-ins/Date/now/name.js b/test/built-ins/Date/now/name.js new file mode 100755 index 0000000000..65c007d086 --- /dev/null +++ b/test/built-ins/Date/now/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.3.1 +description: > + Date.now.name is "now". +info: > + Date.now ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.now.name, "now"); + +verifyNotEnumerable(Date.now, "name"); +verifyNotWritable(Date.now, "name"); +verifyConfigurable(Date.now, "name"); diff --git a/test/built-ins/Date/parse/name.js b/test/built-ins/Date/parse/name.js new file mode 100755 index 0000000000..446c06b9d6 --- /dev/null +++ b/test/built-ins/Date/parse/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.3.2 +description: > + Date.parse.name is "parse". +info: > + Date.parse ( string ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.parse.name, "parse"); + +verifyNotEnumerable(Date.parse, "name"); +verifyNotWritable(Date.parse, "name"); +verifyConfigurable(Date.parse, "name"); diff --git a/test/built-ins/Date/prototype/getDate/name.js b/test/built-ins/Date/prototype/getDate/name.js new file mode 100755 index 0000000000..4843a59d1f --- /dev/null +++ b/test/built-ins/Date/prototype/getDate/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.2 +description: > + Date.prototype.getDate.name is "getDate". +info: > + Date.prototype.getDate ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getDate.name, "getDate"); + +verifyNotEnumerable(Date.prototype.getDate, "name"); +verifyNotWritable(Date.prototype.getDate, "name"); +verifyConfigurable(Date.prototype.getDate, "name"); diff --git a/test/built-ins/Date/prototype/getDay/name.js b/test/built-ins/Date/prototype/getDay/name.js new file mode 100755 index 0000000000..edd034dfda --- /dev/null +++ b/test/built-ins/Date/prototype/getDay/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.3 +description: > + Date.prototype.getDay.name is "getDay". +info: > + Date.prototype.getDay ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getDay.name, "getDay"); + +verifyNotEnumerable(Date.prototype.getDay, "name"); +verifyNotWritable(Date.prototype.getDay, "name"); +verifyConfigurable(Date.prototype.getDay, "name"); diff --git a/test/built-ins/Date/prototype/getFullYear/name.js b/test/built-ins/Date/prototype/getFullYear/name.js new file mode 100755 index 0000000000..9411a16df6 --- /dev/null +++ b/test/built-ins/Date/prototype/getFullYear/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.4 +description: > + Date.prototype.getFullYear.name is "getFullYear". +info: > + Date.prototype.getFullYear ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getFullYear.name, "getFullYear"); + +verifyNotEnumerable(Date.prototype.getFullYear, "name"); +verifyNotWritable(Date.prototype.getFullYear, "name"); +verifyConfigurable(Date.prototype.getFullYear, "name"); diff --git a/test/built-ins/Date/prototype/getHours/name.js b/test/built-ins/Date/prototype/getHours/name.js new file mode 100755 index 0000000000..d9d4008e3b --- /dev/null +++ b/test/built-ins/Date/prototype/getHours/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.5 +description: > + Date.prototype.getHours.name is "getHours". +info: > + Date.prototype.getHours ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getHours.name, "getHours"); + +verifyNotEnumerable(Date.prototype.getHours, "name"); +verifyNotWritable(Date.prototype.getHours, "name"); +verifyConfigurable(Date.prototype.getHours, "name"); diff --git a/test/built-ins/Date/prototype/getMilliseconds/name.js b/test/built-ins/Date/prototype/getMilliseconds/name.js new file mode 100755 index 0000000000..31c23ad2da --- /dev/null +++ b/test/built-ins/Date/prototype/getMilliseconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.6 +description: > + Date.prototype.getMilliseconds.name is "getMilliseconds". +info: > + Date.prototype.getMilliseconds ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getMilliseconds.name, "getMilliseconds"); + +verifyNotEnumerable(Date.prototype.getMilliseconds, "name"); +verifyNotWritable(Date.prototype.getMilliseconds, "name"); +verifyConfigurable(Date.prototype.getMilliseconds, "name"); diff --git a/test/built-ins/Date/prototype/getMinutes/name.js b/test/built-ins/Date/prototype/getMinutes/name.js new file mode 100755 index 0000000000..dc5ce798ea --- /dev/null +++ b/test/built-ins/Date/prototype/getMinutes/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.7 +description: > + Date.prototype.getMinutes.name is "getMinutes". +info: > + Date.prototype.getMinutes ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getMinutes.name, "getMinutes"); + +verifyNotEnumerable(Date.prototype.getMinutes, "name"); +verifyNotWritable(Date.prototype.getMinutes, "name"); +verifyConfigurable(Date.prototype.getMinutes, "name"); diff --git a/test/built-ins/Date/prototype/getMonth/name.js b/test/built-ins/Date/prototype/getMonth/name.js new file mode 100755 index 0000000000..044da6e25d --- /dev/null +++ b/test/built-ins/Date/prototype/getMonth/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.8 +description: > + Date.prototype.getMonth.name is "getMonth". +info: > + Date.prototype.getMonth ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getMonth.name, "getMonth"); + +verifyNotEnumerable(Date.prototype.getMonth, "name"); +verifyNotWritable(Date.prototype.getMonth, "name"); +verifyConfigurable(Date.prototype.getMonth, "name"); diff --git a/test/built-ins/Date/prototype/getSeconds/name.js b/test/built-ins/Date/prototype/getSeconds/name.js new file mode 100755 index 0000000000..48fa7f0c92 --- /dev/null +++ b/test/built-ins/Date/prototype/getSeconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.9 +description: > + Date.prototype.getSeconds.name is "getSeconds". +info: > + Date.prototype.getSeconds ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getSeconds.name, "getSeconds"); + +verifyNotEnumerable(Date.prototype.getSeconds, "name"); +verifyNotWritable(Date.prototype.getSeconds, "name"); +verifyConfigurable(Date.prototype.getSeconds, "name"); diff --git a/test/built-ins/Date/prototype/getTime/name.js b/test/built-ins/Date/prototype/getTime/name.js new file mode 100755 index 0000000000..5f4ee79c70 --- /dev/null +++ b/test/built-ins/Date/prototype/getTime/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.10 +description: > + Date.prototype.getTime.name is "getTime". +info: > + Date.prototype.getTime ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getTime.name, "getTime"); + +verifyNotEnumerable(Date.prototype.getTime, "name"); +verifyNotWritable(Date.prototype.getTime, "name"); +verifyConfigurable(Date.prototype.getTime, "name"); diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/name.js b/test/built-ins/Date/prototype/getTimezoneOffset/name.js new file mode 100755 index 0000000000..a556b718c2 --- /dev/null +++ b/test/built-ins/Date/prototype/getTimezoneOffset/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.11 +description: > + Date.prototype.getTimezoneOffset.name is "getTimezoneOffset". +info: > + Date.prototype.getTimezoneOffset ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getTimezoneOffset.name, "getTimezoneOffset"); + +verifyNotEnumerable(Date.prototype.getTimezoneOffset, "name"); +verifyNotWritable(Date.prototype.getTimezoneOffset, "name"); +verifyConfigurable(Date.prototype.getTimezoneOffset, "name"); diff --git a/test/built-ins/Date/prototype/getUTCDate/name.js b/test/built-ins/Date/prototype/getUTCDate/name.js new file mode 100755 index 0000000000..66fa820c9b --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCDate/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.12 +description: > + Date.prototype.getUTCDate.name is "getUTCDate". +info: > + Date.prototype.getUTCDate ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCDate.name, "getUTCDate"); + +verifyNotEnumerable(Date.prototype.getUTCDate, "name"); +verifyNotWritable(Date.prototype.getUTCDate, "name"); +verifyConfigurable(Date.prototype.getUTCDate, "name"); diff --git a/test/built-ins/Date/prototype/getUTCDay/name.js b/test/built-ins/Date/prototype/getUTCDay/name.js new file mode 100755 index 0000000000..a8d3a53cc9 --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCDay/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.13 +description: > + Date.prototype.getUTCDay.name is "getUTCDay". +info: > + Date.prototype.getUTCDay ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCDay.name, "getUTCDay"); + +verifyNotEnumerable(Date.prototype.getUTCDay, "name"); +verifyNotWritable(Date.prototype.getUTCDay, "name"); +verifyConfigurable(Date.prototype.getUTCDay, "name"); diff --git a/test/built-ins/Date/prototype/getUTCFullYear/name.js b/test/built-ins/Date/prototype/getUTCFullYear/name.js new file mode 100755 index 0000000000..ff94ba40ca --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCFullYear/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.14 +description: > + Date.prototype.getUTCFullYear.name is "getUTCFullYear". +info: > + Date.prototype.getUTCFullYear ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCFullYear.name, "getUTCFullYear"); + +verifyNotEnumerable(Date.prototype.getUTCFullYear, "name"); +verifyNotWritable(Date.prototype.getUTCFullYear, "name"); +verifyConfigurable(Date.prototype.getUTCFullYear, "name"); diff --git a/test/built-ins/Date/prototype/getUTCHours/name.js b/test/built-ins/Date/prototype/getUTCHours/name.js new file mode 100755 index 0000000000..118d7b1972 --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCHours/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.15 +description: > + Date.prototype.getUTCHours.name is "getUTCHours". +info: > + Date.prototype.getUTCHours ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCHours.name, "getUTCHours"); + +verifyNotEnumerable(Date.prototype.getUTCHours, "name"); +verifyNotWritable(Date.prototype.getUTCHours, "name"); +verifyConfigurable(Date.prototype.getUTCHours, "name"); diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/name.js b/test/built-ins/Date/prototype/getUTCMilliseconds/name.js new file mode 100755 index 0000000000..e3bd65423a --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.16 +description: > + Date.prototype.getUTCMilliseconds.name is "getUTCMilliseconds". +info: > + Date.prototype.getUTCMilliseconds ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCMilliseconds.name, "getUTCMilliseconds"); + +verifyNotEnumerable(Date.prototype.getUTCMilliseconds, "name"); +verifyNotWritable(Date.prototype.getUTCMilliseconds, "name"); +verifyConfigurable(Date.prototype.getUTCMilliseconds, "name"); diff --git a/test/built-ins/Date/prototype/getUTCMinutes/name.js b/test/built-ins/Date/prototype/getUTCMinutes/name.js new file mode 100755 index 0000000000..ff51f0de84 --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCMinutes/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.17 +description: > + Date.prototype.getUTCMinutes.name is "getUTCMinutes". +info: > + Date.prototype.getUTCMinutes ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCMinutes.name, "getUTCMinutes"); + +verifyNotEnumerable(Date.prototype.getUTCMinutes, "name"); +verifyNotWritable(Date.prototype.getUTCMinutes, "name"); +verifyConfigurable(Date.prototype.getUTCMinutes, "name"); diff --git a/test/built-ins/Date/prototype/getUTCMonth/name.js b/test/built-ins/Date/prototype/getUTCMonth/name.js new file mode 100755 index 0000000000..aebf599679 --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCMonth/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.18 +description: > + Date.prototype.getUTCMonth.name is "getUTCMonth". +info: > + Date.prototype.getUTCMonth ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCMonth.name, "getUTCMonth"); + +verifyNotEnumerable(Date.prototype.getUTCMonth, "name"); +verifyNotWritable(Date.prototype.getUTCMonth, "name"); +verifyConfigurable(Date.prototype.getUTCMonth, "name"); diff --git a/test/built-ins/Date/prototype/getUTCSeconds/name.js b/test/built-ins/Date/prototype/getUTCSeconds/name.js new file mode 100755 index 0000000000..260136df29 --- /dev/null +++ b/test/built-ins/Date/prototype/getUTCSeconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.19 +description: > + Date.prototype.getUTCSeconds.name is "getUTCSeconds". +info: > + Date.prototype.getUTCSeconds ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.getUTCSeconds.name, "getUTCSeconds"); + +verifyNotEnumerable(Date.prototype.getUTCSeconds, "name"); +verifyNotWritable(Date.prototype.getUTCSeconds, "name"); +verifyConfigurable(Date.prototype.getUTCSeconds, "name"); diff --git a/test/built-ins/Date/prototype/setDate/name.js b/test/built-ins/Date/prototype/setDate/name.js new file mode 100755 index 0000000000..8d66e4dc57 --- /dev/null +++ b/test/built-ins/Date/prototype/setDate/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.20 +description: > + Date.prototype.setDate.name is "setDate". +info: > + Date.prototype.setDate ( date ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setDate.name, "setDate"); + +verifyNotEnumerable(Date.prototype.setDate, "name"); +verifyNotWritable(Date.prototype.setDate, "name"); +verifyConfigurable(Date.prototype.setDate, "name"); diff --git a/test/built-ins/Date/prototype/setFullYear/name.js b/test/built-ins/Date/prototype/setFullYear/name.js new file mode 100755 index 0000000000..3d27544440 --- /dev/null +++ b/test/built-ins/Date/prototype/setFullYear/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.21 +description: > + Date.prototype.setFullYear.name is "setFullYear". +info: > + Date.prototype.setFullYear ( year [ , month [ , date ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setFullYear.name, "setFullYear"); + +verifyNotEnumerable(Date.prototype.setFullYear, "name"); +verifyNotWritable(Date.prototype.setFullYear, "name"); +verifyConfigurable(Date.prototype.setFullYear, "name"); diff --git a/test/built-ins/Date/prototype/setHours/name.js b/test/built-ins/Date/prototype/setHours/name.js new file mode 100755 index 0000000000..b1f415f87f --- /dev/null +++ b/test/built-ins/Date/prototype/setHours/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.22 +description: > + Date.prototype.setHours.name is "setHours". +info: > + Date.prototype.setHours ( hour [ , min [ , sec [ , ms ] ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setHours.name, "setHours"); + +verifyNotEnumerable(Date.prototype.setHours, "name"); +verifyNotWritable(Date.prototype.setHours, "name"); +verifyConfigurable(Date.prototype.setHours, "name"); diff --git a/test/built-ins/Date/prototype/setMilliseconds/name.js b/test/built-ins/Date/prototype/setMilliseconds/name.js new file mode 100755 index 0000000000..ba14aaeeec --- /dev/null +++ b/test/built-ins/Date/prototype/setMilliseconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.23 +description: > + Date.prototype.setMilliseconds.name is "setMilliseconds". +info: > + Date.prototype.setMilliseconds ( ms ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setMilliseconds.name, "setMilliseconds"); + +verifyNotEnumerable(Date.prototype.setMilliseconds, "name"); +verifyNotWritable(Date.prototype.setMilliseconds, "name"); +verifyConfigurable(Date.prototype.setMilliseconds, "name"); diff --git a/test/built-ins/Date/prototype/setMinutes/name.js b/test/built-ins/Date/prototype/setMinutes/name.js new file mode 100755 index 0000000000..4f287ade1d --- /dev/null +++ b/test/built-ins/Date/prototype/setMinutes/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.24 +description: > + Date.prototype.setMinutes.name is "setMinutes". +info: > + Date.prototype.setMinutes ( min [ , sec [ , ms ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setMinutes.name, "setMinutes"); + +verifyNotEnumerable(Date.prototype.setMinutes, "name"); +verifyNotWritable(Date.prototype.setMinutes, "name"); +verifyConfigurable(Date.prototype.setMinutes, "name"); diff --git a/test/built-ins/Date/prototype/setMonth/name.js b/test/built-ins/Date/prototype/setMonth/name.js new file mode 100755 index 0000000000..f61a2dcfef --- /dev/null +++ b/test/built-ins/Date/prototype/setMonth/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.25 +description: > + Date.prototype.setMonth.name is "setMonth". +info: > + Date.prototype.setMonth ( month [ , date ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setMonth.name, "setMonth"); + +verifyNotEnumerable(Date.prototype.setMonth, "name"); +verifyNotWritable(Date.prototype.setMonth, "name"); +verifyConfigurable(Date.prototype.setMonth, "name"); diff --git a/test/built-ins/Date/prototype/setSeconds/name.js b/test/built-ins/Date/prototype/setSeconds/name.js new file mode 100755 index 0000000000..dd06cd150b --- /dev/null +++ b/test/built-ins/Date/prototype/setSeconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.26 +description: > + Date.prototype.setSeconds.name is "setSeconds". +info: > + Date.prototype.setSeconds ( sec [ , ms ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setSeconds.name, "setSeconds"); + +verifyNotEnumerable(Date.prototype.setSeconds, "name"); +verifyNotWritable(Date.prototype.setSeconds, "name"); +verifyConfigurable(Date.prototype.setSeconds, "name"); diff --git a/test/built-ins/Date/prototype/setTime/name.js b/test/built-ins/Date/prototype/setTime/name.js new file mode 100755 index 0000000000..b3ada24de8 --- /dev/null +++ b/test/built-ins/Date/prototype/setTime/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.27 +description: > + Date.prototype.setTime.name is "setTime". +info: > + Date.prototype.setTime ( time ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setTime.name, "setTime"); + +verifyNotEnumerable(Date.prototype.setTime, "name"); +verifyNotWritable(Date.prototype.setTime, "name"); +verifyConfigurable(Date.prototype.setTime, "name"); diff --git a/test/built-ins/Date/prototype/setUTCDate/name.js b/test/built-ins/Date/prototype/setUTCDate/name.js new file mode 100755 index 0000000000..be6694c439 --- /dev/null +++ b/test/built-ins/Date/prototype/setUTCDate/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.28 +description: > + Date.prototype.setUTCDate.name is "setUTCDate". +info: > + Date.prototype.setUTCDate ( date ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setUTCDate.name, "setUTCDate"); + +verifyNotEnumerable(Date.prototype.setUTCDate, "name"); +verifyNotWritable(Date.prototype.setUTCDate, "name"); +verifyConfigurable(Date.prototype.setUTCDate, "name"); diff --git a/test/built-ins/Date/prototype/setUTCFullYear/name.js b/test/built-ins/Date/prototype/setUTCFullYear/name.js new file mode 100755 index 0000000000..de5775833a --- /dev/null +++ b/test/built-ins/Date/prototype/setUTCFullYear/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.29 +description: > + Date.prototype.setUTCFullYear.name is "setUTCFullYear". +info: > + Date.prototype.setUTCFullYear ( year [ , month [ , date ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setUTCFullYear.name, "setUTCFullYear"); + +verifyNotEnumerable(Date.prototype.setUTCFullYear, "name"); +verifyNotWritable(Date.prototype.setUTCFullYear, "name"); +verifyConfigurable(Date.prototype.setUTCFullYear, "name"); diff --git a/test/built-ins/Date/prototype/setUTCHours/name.js b/test/built-ins/Date/prototype/setUTCHours/name.js new file mode 100755 index 0000000000..ed616babd2 --- /dev/null +++ b/test/built-ins/Date/prototype/setUTCHours/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.30 +description: > + Date.prototype.setUTCHours.name is "setUTCHours". +info: > + Date.prototype.setUTCHours ( hour [ , min [ , sec [ , ms ] ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setUTCHours.name, "setUTCHours"); + +verifyNotEnumerable(Date.prototype.setUTCHours, "name"); +verifyNotWritable(Date.prototype.setUTCHours, "name"); +verifyConfigurable(Date.prototype.setUTCHours, "name"); diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/name.js b/test/built-ins/Date/prototype/setUTCMilliseconds/name.js new file mode 100755 index 0000000000..c7f78a2556 --- /dev/null +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.31 +description: > + Date.prototype.setUTCMilliseconds.name is "setUTCMilliseconds". +info: > + Date.prototype.setUTCMilliseconds ( ms ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setUTCMilliseconds.name, "setUTCMilliseconds"); + +verifyNotEnumerable(Date.prototype.setUTCMilliseconds, "name"); +verifyNotWritable(Date.prototype.setUTCMilliseconds, "name"); +verifyConfigurable(Date.prototype.setUTCMilliseconds, "name"); diff --git a/test/built-ins/Date/prototype/setUTCMinutes/name.js b/test/built-ins/Date/prototype/setUTCMinutes/name.js new file mode 100755 index 0000000000..6706e7347b --- /dev/null +++ b/test/built-ins/Date/prototype/setUTCMinutes/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.32 +description: > + Date.prototype.setUTCMinutes.name is "setUTCMinutes". +info: > + Date.prototype.setUTCMinutes ( min [ , sec [, ms ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setUTCMinutes.name, "setUTCMinutes"); + +verifyNotEnumerable(Date.prototype.setUTCMinutes, "name"); +verifyNotWritable(Date.prototype.setUTCMinutes, "name"); +verifyConfigurable(Date.prototype.setUTCMinutes, "name"); diff --git a/test/built-ins/Date/prototype/setUTCMonth/name.js b/test/built-ins/Date/prototype/setUTCMonth/name.js new file mode 100755 index 0000000000..a23d7ccfe5 --- /dev/null +++ b/test/built-ins/Date/prototype/setUTCMonth/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.33 +description: > + Date.prototype.setUTCMonth.name is "setUTCMonth". +info: > + Date.prototype.setUTCMonth ( month [ , date ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setUTCMonth.name, "setUTCMonth"); + +verifyNotEnumerable(Date.prototype.setUTCMonth, "name"); +verifyNotWritable(Date.prototype.setUTCMonth, "name"); +verifyConfigurable(Date.prototype.setUTCMonth, "name"); diff --git a/test/built-ins/Date/prototype/setUTCSeconds/name.js b/test/built-ins/Date/prototype/setUTCSeconds/name.js new file mode 100755 index 0000000000..0c663b07a8 --- /dev/null +++ b/test/built-ins/Date/prototype/setUTCSeconds/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.34 +description: > + Date.prototype.setUTCSeconds.name is "setUTCSeconds". +info: > + Date.prototype.setUTCSeconds ( sec [ , ms ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.setUTCSeconds.name, "setUTCSeconds"); + +verifyNotEnumerable(Date.prototype.setUTCSeconds, "name"); +verifyNotWritable(Date.prototype.setUTCSeconds, "name"); +verifyConfigurable(Date.prototype.setUTCSeconds, "name"); diff --git a/test/built-ins/Date/prototype/toDateString/name.js b/test/built-ins/Date/prototype/toDateString/name.js new file mode 100755 index 0000000000..b03c83b5bf --- /dev/null +++ b/test/built-ins/Date/prototype/toDateString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.35 +description: > + Date.prototype.toDateString.name is "toDateString". +info: > + Date.prototype.toDateString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toDateString.name, "toDateString"); + +verifyNotEnumerable(Date.prototype.toDateString, "name"); +verifyNotWritable(Date.prototype.toDateString, "name"); +verifyConfigurable(Date.prototype.toDateString, "name"); diff --git a/test/built-ins/Date/prototype/toISOString/name.js b/test/built-ins/Date/prototype/toISOString/name.js new file mode 100755 index 0000000000..24a05dd60b --- /dev/null +++ b/test/built-ins/Date/prototype/toISOString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.36 +description: > + Date.prototype.toISOString.name is "toISOString". +info: > + Date.prototype.toISOString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toISOString.name, "toISOString"); + +verifyNotEnumerable(Date.prototype.toISOString, "name"); +verifyNotWritable(Date.prototype.toISOString, "name"); +verifyConfigurable(Date.prototype.toISOString, "name"); diff --git a/test/built-ins/Date/prototype/toJSON/name.js b/test/built-ins/Date/prototype/toJSON/name.js new file mode 100755 index 0000000000..d6496762e7 --- /dev/null +++ b/test/built-ins/Date/prototype/toJSON/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.37 +description: > + Date.prototype.toJSON.name is "toJSON". +info: > + Date.prototype.toJSON ( key ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toJSON.name, "toJSON"); + +verifyNotEnumerable(Date.prototype.toJSON, "name"); +verifyNotWritable(Date.prototype.toJSON, "name"); +verifyConfigurable(Date.prototype.toJSON, "name"); diff --git a/test/built-ins/Date/prototype/toLocaleDateString/name.js b/test/built-ins/Date/prototype/toLocaleDateString/name.js new file mode 100755 index 0000000000..cb3aa147be --- /dev/null +++ b/test/built-ins/Date/prototype/toLocaleDateString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.38 +description: > + Date.prototype.toLocaleDateString.name is "toLocaleDateString". +info: > + Date.prototype.toLocaleDateString ( [ reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toLocaleDateString.name, "toLocaleDateString"); + +verifyNotEnumerable(Date.prototype.toLocaleDateString, "name"); +verifyNotWritable(Date.prototype.toLocaleDateString, "name"); +verifyConfigurable(Date.prototype.toLocaleDateString, "name"); diff --git a/test/built-ins/Date/prototype/toLocaleString/name.js b/test/built-ins/Date/prototype/toLocaleString/name.js new file mode 100755 index 0000000000..855179114d --- /dev/null +++ b/test/built-ins/Date/prototype/toLocaleString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.39 +description: > + Date.prototype.toLocaleString.name is "toLocaleString". +info: > + Date.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toLocaleString.name, "toLocaleString"); + +verifyNotEnumerable(Date.prototype.toLocaleString, "name"); +verifyNotWritable(Date.prototype.toLocaleString, "name"); +verifyConfigurable(Date.prototype.toLocaleString, "name"); diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/name.js b/test/built-ins/Date/prototype/toLocaleTimeString/name.js new file mode 100755 index 0000000000..63599ce2fe --- /dev/null +++ b/test/built-ins/Date/prototype/toLocaleTimeString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.40 +description: > + Date.prototype.toLocaleTimeString.name is "toLocaleTimeString". +info: > + Date.prototype.toLocaleTimeString ( [ reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toLocaleTimeString.name, "toLocaleTimeString"); + +verifyNotEnumerable(Date.prototype.toLocaleTimeString, "name"); +verifyNotWritable(Date.prototype.toLocaleTimeString, "name"); +verifyConfigurable(Date.prototype.toLocaleTimeString, "name"); diff --git a/test/built-ins/Date/prototype/toString/name.js b/test/built-ins/Date/prototype/toString/name.js new file mode 100755 index 0000000000..edc0c064a9 --- /dev/null +++ b/test/built-ins/Date/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.41 +description: > + Date.prototype.toString.name is "toString". +info: > + Date.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toString.name, "toString"); + +verifyNotEnumerable(Date.prototype.toString, "name"); +verifyNotWritable(Date.prototype.toString, "name"); +verifyConfigurable(Date.prototype.toString, "name"); diff --git a/test/built-ins/Date/prototype/toTimeString/name.js b/test/built-ins/Date/prototype/toTimeString/name.js new file mode 100755 index 0000000000..c5c766a408 --- /dev/null +++ b/test/built-ins/Date/prototype/toTimeString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.42 +description: > + Date.prototype.toTimeString.name is "toTimeString". +info: > + Date.prototype.toTimeString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toTimeString.name, "toTimeString"); + +verifyNotEnumerable(Date.prototype.toTimeString, "name"); +verifyNotWritable(Date.prototype.toTimeString, "name"); +verifyConfigurable(Date.prototype.toTimeString, "name"); diff --git a/test/built-ins/Date/prototype/toUTCString/name.js b/test/built-ins/Date/prototype/toUTCString/name.js new file mode 100755 index 0000000000..83dceb6deb --- /dev/null +++ b/test/built-ins/Date/prototype/toUTCString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.43 +description: > + Date.prototype.toUTCString.name is "toUTCString". +info: > + Date.prototype.toUTCString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.toUTCString.name, "toUTCString"); + +verifyNotEnumerable(Date.prototype.toUTCString, "name"); +verifyNotWritable(Date.prototype.toUTCString, "name"); +verifyConfigurable(Date.prototype.toUTCString, "name"); diff --git a/test/built-ins/Date/prototype/valueOf/name.js b/test/built-ins/Date/prototype/valueOf/name.js new file mode 100755 index 0000000000..afc1d8777b --- /dev/null +++ b/test/built-ins/Date/prototype/valueOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.3.4.44 +description: > + Date.prototype.valueOf.name is "valueOf". +info: > + Date.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Date.prototype.valueOf.name, "valueOf"); + +verifyNotEnumerable(Date.prototype.valueOf, "name"); +verifyNotWritable(Date.prototype.valueOf, "name"); +verifyConfigurable(Date.prototype.valueOf, "name"); diff --git a/test/built-ins/Error/prototype/toString/length.js b/test/built-ins/Error/prototype/toString/length.js new file mode 100755 index 0000000000..2a8f596c20 --- /dev/null +++ b/test/built-ins/Error/prototype/toString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.3.4 +description: > + Error.prototype.toString.length is 0. +info: > + Error.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Error.prototype.toString.length, 0); + +verifyNotEnumerable(Error.prototype.toString, "length"); +verifyNotWritable(Error.prototype.toString, "length"); +verifyConfigurable(Error.prototype.toString, "length"); diff --git a/test/built-ins/Error/prototype/toString/name.js b/test/built-ins/Error/prototype/toString/name.js new file mode 100755 index 0000000000..b9c8ffbb6e --- /dev/null +++ b/test/built-ins/Error/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.3.4 +description: > + Error.prototype.toString.name is "toString". +info: > + Error.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Error.prototype.toString.name, "toString"); + +verifyNotEnumerable(Error.prototype.toString, "name"); +verifyNotWritable(Error.prototype.toString, "name"); +verifyConfigurable(Error.prototype.toString, "name"); diff --git a/test/built-ins/Function/prototype/apply/name.js b/test/built-ins/Function/prototype/apply/name.js new file mode 100755 index 0000000000..61a6a78d31 --- /dev/null +++ b/test/built-ins/Function/prototype/apply/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.2.3.1 +description: > + Function.prototype.apply.name is "apply". +info: > + Function.prototype.apply ( thisArg, argArray ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Function.prototype.apply.name, "apply"); + +verifyNotEnumerable(Function.prototype.apply, "name"); +verifyNotWritable(Function.prototype.apply, "name"); +verifyConfigurable(Function.prototype.apply, "name"); diff --git a/test/built-ins/Function/prototype/bind/name.js b/test/built-ins/Function/prototype/bind/name.js new file mode 100755 index 0000000000..354bb50238 --- /dev/null +++ b/test/built-ins/Function/prototype/bind/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.2.3.2 +description: > + Function.prototype.bind.name is "bind". +info: > + Function.prototype.bind ( thisArg , ...args) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Function.prototype.bind.name, "bind"); + +verifyNotEnumerable(Function.prototype.bind, "name"); +verifyNotWritable(Function.prototype.bind, "name"); +verifyConfigurable(Function.prototype.bind, "name"); diff --git a/test/built-ins/Function/prototype/call/name.js b/test/built-ins/Function/prototype/call/name.js new file mode 100755 index 0000000000..0906316c04 --- /dev/null +++ b/test/built-ins/Function/prototype/call/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.2.3.3 +description: > + Function.prototype.call.name is "call". +info: > + Function.prototype.call (thisArg , ...args) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Function.prototype.call.name, "call"); + +verifyNotEnumerable(Function.prototype.call, "name"); +verifyNotWritable(Function.prototype.call, "name"); +verifyConfigurable(Function.prototype.call, "name"); diff --git a/test/built-ins/Function/prototype/toString/name.js b/test/built-ins/Function/prototype/toString/name.js new file mode 100755 index 0000000000..4b4cc6c298 --- /dev/null +++ b/test/built-ins/Function/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.2.3.5 +description: > + Function.prototype.toString.name is "toString". +info: > + Function.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Function.prototype.toString.name, "toString"); + +verifyNotEnumerable(Function.prototype.toString, "name"); +verifyNotWritable(Function.prototype.toString, "name"); +verifyConfigurable(Function.prototype.toString, "name"); diff --git a/test/built-ins/GeneratorPrototype/next/length.js b/test/built-ins/GeneratorPrototype/next/length.js new file mode 100755 index 0000000000..8660b391ad --- /dev/null +++ b/test/built-ins/GeneratorPrototype/next/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 25.3.1.2 +description: > + Generator.prototype.next.length is 1. +info: > + Generator.prototype.next ( value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +function* g() {} +var GeneratorPrototype = Object.getPrototypeOf(g).prototype; + +assert.sameValue(GeneratorPrototype.next.length, 1); + +verifyNotEnumerable(GeneratorPrototype.next, "length"); +verifyNotWritable(GeneratorPrototype.next, "length"); +verifyConfigurable(GeneratorPrototype.next, "length"); diff --git a/test/built-ins/GeneratorPrototype/next/name.js b/test/built-ins/GeneratorPrototype/next/name.js new file mode 100755 index 0000000000..a71fec48e0 --- /dev/null +++ b/test/built-ins/GeneratorPrototype/next/name.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 25.3.1.2 +description: > + Generator.prototype.next.name is "next". +info: > + Generator.prototype.next ( value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +function* g() {} +var GeneratorPrototype = Object.getPrototypeOf(g).prototype; + +assert.sameValue(GeneratorPrototype.next.name, "next"); + +verifyNotEnumerable(GeneratorPrototype.next, "name"); +verifyNotWritable(GeneratorPrototype.next, "name"); +verifyConfigurable(GeneratorPrototype.next, "name"); diff --git a/test/built-ins/GeneratorPrototype/return/length.js b/test/built-ins/GeneratorPrototype/return/length.js new file mode 100755 index 0000000000..fd7e72aa52 --- /dev/null +++ b/test/built-ins/GeneratorPrototype/return/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 25.3.1.3 +description: > + Generator.prototype.return.length is 1. +info: > + Generator.prototype.return ( value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +function* g() {} +var GeneratorPrototype = Object.getPrototypeOf(g).prototype; + +assert.sameValue(GeneratorPrototype.return.length, 1); + +verifyNotEnumerable(GeneratorPrototype.return, "length"); +verifyNotWritable(GeneratorPrototype.return, "length"); +verifyConfigurable(GeneratorPrototype.return, "length"); diff --git a/test/built-ins/GeneratorPrototype/return/name.js b/test/built-ins/GeneratorPrototype/return/name.js new file mode 100755 index 0000000000..79f1df8c19 --- /dev/null +++ b/test/built-ins/GeneratorPrototype/return/name.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 25.3.1.3 +description: > + Generator.prototype.return.name is "return". +info: > + Generator.prototype.return ( value ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +function* g() {} +var GeneratorPrototype = Object.getPrototypeOf(g).prototype; + +assert.sameValue(GeneratorPrototype.return.name, "return"); + +verifyNotEnumerable(GeneratorPrototype.return, "name"); +verifyNotWritable(GeneratorPrototype.return, "name"); +verifyConfigurable(GeneratorPrototype.return, "name"); diff --git a/test/built-ins/GeneratorPrototype/throw/length.js b/test/built-ins/GeneratorPrototype/throw/length.js new file mode 100755 index 0000000000..ecd05a4581 --- /dev/null +++ b/test/built-ins/GeneratorPrototype/throw/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 25.3.1.4 +description: > + Generator.prototype.throw.length is 1. +info: > + Generator.prototype.throw ( exception ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +function* g() {} +var GeneratorPrototype = Object.getPrototypeOf(g).prototype; + +assert.sameValue(GeneratorPrototype.throw.length, 1); + +verifyNotEnumerable(GeneratorPrototype.throw, "length"); +verifyNotWritable(GeneratorPrototype.throw, "length"); +verifyConfigurable(GeneratorPrototype.throw, "length"); diff --git a/test/built-ins/GeneratorPrototype/throw/name.js b/test/built-ins/GeneratorPrototype/throw/name.js new file mode 100755 index 0000000000..f005b26d21 --- /dev/null +++ b/test/built-ins/GeneratorPrototype/throw/name.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 25.3.1.4 +description: > + Generator.prototype.throw.name is "throw". +info: > + Generator.prototype.throw ( exception ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +function* g() {} +var GeneratorPrototype = Object.getPrototypeOf(g).prototype; + +assert.sameValue(GeneratorPrototype.throw.name, "throw"); + +verifyNotEnumerable(GeneratorPrototype.throw, "name"); +verifyNotWritable(GeneratorPrototype.throw, "name"); +verifyConfigurable(GeneratorPrototype.throw, "name"); diff --git a/test/built-ins/JSON/parse/name.js b/test/built-ins/JSON/parse/name.js new file mode 100755 index 0000000000..860527209e --- /dev/null +++ b/test/built-ins/JSON/parse/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.3.1 +description: > + JSON.parse.name is "parse". +info: > + JSON.parse ( text [ , reviver ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(JSON.parse.name, "parse"); + +verifyNotEnumerable(JSON.parse, "name"); +verifyNotWritable(JSON.parse, "name"); +verifyConfigurable(JSON.parse, "name"); diff --git a/test/built-ins/JSON/stringify/name.js b/test/built-ins/JSON/stringify/name.js new file mode 100755 index 0000000000..907632faba --- /dev/null +++ b/test/built-ins/JSON/stringify/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 24.3.2 +description: > + JSON.stringify.name is "stringify". +info: > + JSON.stringify ( value [ , replacer [ , space ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(JSON.stringify.name, "stringify"); + +verifyNotEnumerable(JSON.stringify, "name"); +verifyNotWritable(JSON.stringify, "name"); +verifyConfigurable(JSON.stringify, "name"); diff --git a/test/built-ins/Map/Symbol.species/length.js b/test/built-ins/Map/Symbol.species/length.js new file mode 100755 index 0000000000..156755e364 --- /dev/null +++ b/test/built-ins/Map/Symbol.species/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 23.1.2.2 +description: > + get Map [ @@species ].length is 0. +info: > + get Map [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(Map, Symbol.species); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/MapIteratorPrototype/next/length.js b/test/built-ins/MapIteratorPrototype/next/length.js new file mode 100755 index 0000000000..782a0ba9d7 --- /dev/null +++ b/test/built-ins/MapIteratorPrototype/next/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 23.1.5.2.1 +description: > + %MapIteratorPrototype%.next.length is 0. +info: > + %MapIteratorPrototype%.next ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var MapIteratorProto = Object.getPrototypeOf(new Map().values()); + +assert.sameValue(MapIteratorProto.next.length, 0); + +verifyNotEnumerable(MapIteratorProto.next, "length"); +verifyNotWritable(MapIteratorProto.next, "length"); +verifyConfigurable(MapIteratorProto.next, "length"); diff --git a/test/built-ins/MapIteratorPrototype/next/name.js b/test/built-ins/MapIteratorPrototype/next/name.js new file mode 100755 index 0000000000..b7a7dde7dd --- /dev/null +++ b/test/built-ins/MapIteratorPrototype/next/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 23.1.5.2.1 +description: > + %MapIteratorPrototype%.next.name is "next". +info: > + %MapIteratorPrototype%.next ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var MapIteratorProto = Object.getPrototypeOf(new Map().values()); + +assert.sameValue(MapIteratorProto.next.name, "next"); + +verifyNotEnumerable(MapIteratorProto.next, "name"); +verifyNotWritable(MapIteratorProto.next, "name"); +verifyConfigurable(MapIteratorProto.next, "name"); diff --git a/test/built-ins/Math/abs/length.js b/test/built-ins/Math/abs/length.js new file mode 100755 index 0000000000..9cc5cd9614 --- /dev/null +++ b/test/built-ins/Math/abs/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.1 +description: > + Math.abs.length is 1. +info: > + Math.abs ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.abs.length, 1); + +verifyNotEnumerable(Math.abs, "length"); +verifyNotWritable(Math.abs, "length"); +verifyConfigurable(Math.abs, "length"); diff --git a/test/built-ins/Math/abs/name.js b/test/built-ins/Math/abs/name.js new file mode 100755 index 0000000000..c5cd3a4d5c --- /dev/null +++ b/test/built-ins/Math/abs/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.1 +description: > + Math.abs.name is "abs". +info: > + Math.abs ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.abs.name, "abs"); + +verifyNotEnumerable(Math.abs, "name"); +verifyNotWritable(Math.abs, "name"); +verifyConfigurable(Math.abs, "name"); diff --git a/test/built-ins/Math/acos/length.js b/test/built-ins/Math/acos/length.js new file mode 100755 index 0000000000..b46ffcf132 --- /dev/null +++ b/test/built-ins/Math/acos/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.2 +description: > + Math.acos.length is 1. +info: > + Math.acos ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.acos.length, 1); + +verifyNotEnumerable(Math.acos, "length"); +verifyNotWritable(Math.acos, "length"); +verifyConfigurable(Math.acos, "length"); diff --git a/test/built-ins/Math/acos/name.js b/test/built-ins/Math/acos/name.js new file mode 100755 index 0000000000..9a32db7200 --- /dev/null +++ b/test/built-ins/Math/acos/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.2 +description: > + Math.acos.name is "acos". +info: > + Math.acos ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.acos.name, "acos"); + +verifyNotEnumerable(Math.acos, "name"); +verifyNotWritable(Math.acos, "name"); +verifyConfigurable(Math.acos, "name"); diff --git a/test/built-ins/Math/acosh/name.js b/test/built-ins/Math/acosh/name.js new file mode 100755 index 0000000000..4f6af5da8f --- /dev/null +++ b/test/built-ins/Math/acosh/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.3 +description: > + Math.acosh.name is "acosh". +info: > + Math.acosh ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.acosh.name, "acosh"); + +verifyNotEnumerable(Math.acosh, "name"); +verifyNotWritable(Math.acosh, "name"); +verifyConfigurable(Math.acosh, "name"); diff --git a/test/built-ins/Math/asin/length.js b/test/built-ins/Math/asin/length.js new file mode 100755 index 0000000000..b115719086 --- /dev/null +++ b/test/built-ins/Math/asin/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.4 +description: > + Math.asin.length is 1. +info: > + Math.asin ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.asin.length, 1); + +verifyNotEnumerable(Math.asin, "length"); +verifyNotWritable(Math.asin, "length"); +verifyConfigurable(Math.asin, "length"); diff --git a/test/built-ins/Math/asin/name.js b/test/built-ins/Math/asin/name.js new file mode 100755 index 0000000000..4d5ff0d294 --- /dev/null +++ b/test/built-ins/Math/asin/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.4 +description: > + Math.asin.name is "asin". +info: > + Math.asin ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.asin.name, "asin"); + +verifyNotEnumerable(Math.asin, "name"); +verifyNotWritable(Math.asin, "name"); +verifyConfigurable(Math.asin, "name"); diff --git a/test/built-ins/Math/asinh/name.js b/test/built-ins/Math/asinh/name.js new file mode 100755 index 0000000000..e9c9bfc6f6 --- /dev/null +++ b/test/built-ins/Math/asinh/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.5 +description: > + Math.asinh.name is "asinh". +info: > + Math.asinh ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.asinh.name, "asinh"); + +verifyNotEnumerable(Math.asinh, "name"); +verifyNotWritable(Math.asinh, "name"); +verifyConfigurable(Math.asinh, "name"); diff --git a/test/built-ins/Math/atan/length.js b/test/built-ins/Math/atan/length.js new file mode 100755 index 0000000000..15a384988c --- /dev/null +++ b/test/built-ins/Math/atan/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.6 +description: > + Math.atan.length is 1. +info: > + Math.atan ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.atan.length, 1); + +verifyNotEnumerable(Math.atan, "length"); +verifyNotWritable(Math.atan, "length"); +verifyConfigurable(Math.atan, "length"); diff --git a/test/built-ins/Math/atan/name.js b/test/built-ins/Math/atan/name.js new file mode 100755 index 0000000000..83e6648515 --- /dev/null +++ b/test/built-ins/Math/atan/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.6 +description: > + Math.atan.name is "atan". +info: > + Math.atan ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.atan.name, "atan"); + +verifyNotEnumerable(Math.atan, "name"); +verifyNotWritable(Math.atan, "name"); +verifyConfigurable(Math.atan, "name"); diff --git a/test/built-ins/Math/atan2/length.js b/test/built-ins/Math/atan2/length.js new file mode 100755 index 0000000000..59ab3355e4 --- /dev/null +++ b/test/built-ins/Math/atan2/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.8 +description: > + Math.atan2.length is 2. +info: > + Math.atan2 ( y, x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.atan2.length, 2); + +verifyNotEnumerable(Math.atan2, "length"); +verifyNotWritable(Math.atan2, "length"); +verifyConfigurable(Math.atan2, "length"); diff --git a/test/built-ins/Math/atan2/name.js b/test/built-ins/Math/atan2/name.js new file mode 100755 index 0000000000..3adfffcb91 --- /dev/null +++ b/test/built-ins/Math/atan2/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.8 +description: > + Math.atan2.name is "atan2". +info: > + Math.atan2 ( y, x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.atan2.name, "atan2"); + +verifyNotEnumerable(Math.atan2, "name"); +verifyNotWritable(Math.atan2, "name"); +verifyConfigurable(Math.atan2, "name"); diff --git a/test/built-ins/Math/atanh/name.js b/test/built-ins/Math/atanh/name.js new file mode 100755 index 0000000000..e7d281ce63 --- /dev/null +++ b/test/built-ins/Math/atanh/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.7 +description: > + Math.atanh.name is "atanh". +info: > + Math.atanh ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.atanh.name, "atanh"); + +verifyNotEnumerable(Math.atanh, "name"); +verifyNotWritable(Math.atanh, "name"); +verifyConfigurable(Math.atanh, "name"); diff --git a/test/built-ins/Math/cbrt/name.js b/test/built-ins/Math/cbrt/name.js new file mode 100755 index 0000000000..c0c77c9dcc --- /dev/null +++ b/test/built-ins/Math/cbrt/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.9 +description: > + Math.cbrt.name is "cbrt". +info: > + Math.cbrt ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.cbrt.name, "cbrt"); + +verifyNotEnumerable(Math.cbrt, "name"); +verifyNotWritable(Math.cbrt, "name"); +verifyConfigurable(Math.cbrt, "name"); diff --git a/test/built-ins/Math/ceil/length.js b/test/built-ins/Math/ceil/length.js new file mode 100755 index 0000000000..efd2117258 --- /dev/null +++ b/test/built-ins/Math/ceil/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.10 +description: > + Math.ceil.length is 1. +info: > + Math.ceil ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.ceil.length, 1); + +verifyNotEnumerable(Math.ceil, "length"); +verifyNotWritable(Math.ceil, "length"); +verifyConfigurable(Math.ceil, "length"); diff --git a/test/built-ins/Math/ceil/name.js b/test/built-ins/Math/ceil/name.js new file mode 100755 index 0000000000..950cafe19b --- /dev/null +++ b/test/built-ins/Math/ceil/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.10 +description: > + Math.ceil.name is "ceil". +info: > + Math.ceil ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.ceil.name, "ceil"); + +verifyNotEnumerable(Math.ceil, "name"); +verifyNotWritable(Math.ceil, "name"); +verifyConfigurable(Math.ceil, "name"); diff --git a/test/built-ins/Math/clz32/length.js b/test/built-ins/Math/clz32/length.js new file mode 100755 index 0000000000..0b1151944a --- /dev/null +++ b/test/built-ins/Math/clz32/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.11 +description: > + Math.clz32.length is 1. +info: > + Math.clz32 ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.clz32.length, 1); + +verifyNotEnumerable(Math.clz32, "length"); +verifyNotWritable(Math.clz32, "length"); +verifyConfigurable(Math.clz32, "length"); diff --git a/test/built-ins/Math/clz32/name.js b/test/built-ins/Math/clz32/name.js new file mode 100755 index 0000000000..7e99ef9046 --- /dev/null +++ b/test/built-ins/Math/clz32/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.11 +description: > + Math.clz32.name is "clz32". +info: > + Math.clz32 ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.clz32.name, "clz32"); + +verifyNotEnumerable(Math.clz32, "name"); +verifyNotWritable(Math.clz32, "name"); +verifyConfigurable(Math.clz32, "name"); diff --git a/test/built-ins/Math/cos/length.js b/test/built-ins/Math/cos/length.js new file mode 100755 index 0000000000..e7e5f69c3e --- /dev/null +++ b/test/built-ins/Math/cos/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.12 +description: > + Math.cos.length is 1. +info: > + Math.cos ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.cos.length, 1); + +verifyNotEnumerable(Math.cos, "length"); +verifyNotWritable(Math.cos, "length"); +verifyConfigurable(Math.cos, "length"); diff --git a/test/built-ins/Math/cos/name.js b/test/built-ins/Math/cos/name.js new file mode 100755 index 0000000000..916482e9f9 --- /dev/null +++ b/test/built-ins/Math/cos/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.12 +description: > + Math.cos.name is "cos". +info: > + Math.cos ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.cos.name, "cos"); + +verifyNotEnumerable(Math.cos, "name"); +verifyNotWritable(Math.cos, "name"); +verifyConfigurable(Math.cos, "name"); diff --git a/test/built-ins/Math/cosh/name.js b/test/built-ins/Math/cosh/name.js new file mode 100755 index 0000000000..9dcbb2f2ba --- /dev/null +++ b/test/built-ins/Math/cosh/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.13 +description: > + Math.cosh.name is "cosh". +info: > + Math.cosh ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.cosh.name, "cosh"); + +verifyNotEnumerable(Math.cosh, "name"); +verifyNotWritable(Math.cosh, "name"); +verifyConfigurable(Math.cosh, "name"); diff --git a/test/built-ins/Math/exp/length.js b/test/built-ins/Math/exp/length.js new file mode 100755 index 0000000000..bcbd722114 --- /dev/null +++ b/test/built-ins/Math/exp/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.14 +description: > + Math.exp.length is 1. +info: > + Math.exp ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.exp.length, 1); + +verifyNotEnumerable(Math.exp, "length"); +verifyNotWritable(Math.exp, "length"); +verifyConfigurable(Math.exp, "length"); diff --git a/test/built-ins/Math/exp/name.js b/test/built-ins/Math/exp/name.js new file mode 100755 index 0000000000..6caabb859d --- /dev/null +++ b/test/built-ins/Math/exp/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.14 +description: > + Math.exp.name is "exp". +info: > + Math.exp ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.exp.name, "exp"); + +verifyNotEnumerable(Math.exp, "name"); +verifyNotWritable(Math.exp, "name"); +verifyConfigurable(Math.exp, "name"); diff --git a/test/built-ins/Math/expm1/name.js b/test/built-ins/Math/expm1/name.js new file mode 100755 index 0000000000..03521eccaa --- /dev/null +++ b/test/built-ins/Math/expm1/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.15 +description: > + Math.expm1.name is "expm1". +info: > + Math.expm1 ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.expm1.name, "expm1"); + +verifyNotEnumerable(Math.expm1, "name"); +verifyNotWritable(Math.expm1, "name"); +verifyConfigurable(Math.expm1, "name"); diff --git a/test/built-ins/Math/floor/length.js b/test/built-ins/Math/floor/length.js new file mode 100755 index 0000000000..a5634c8a28 --- /dev/null +++ b/test/built-ins/Math/floor/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.16 +description: > + Math.floor.length is 1. +info: > + Math.floor ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.floor.length, 1); + +verifyNotEnumerable(Math.floor, "length"); +verifyNotWritable(Math.floor, "length"); +verifyConfigurable(Math.floor, "length"); diff --git a/test/built-ins/Math/floor/name.js b/test/built-ins/Math/floor/name.js new file mode 100755 index 0000000000..0b9631da1b --- /dev/null +++ b/test/built-ins/Math/floor/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.16 +description: > + Math.floor.name is "floor". +info: > + Math.floor ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.floor.name, "floor"); + +verifyNotEnumerable(Math.floor, "name"); +verifyNotWritable(Math.floor, "name"); +verifyConfigurable(Math.floor, "name"); diff --git a/test/built-ins/Math/fround/length.js b/test/built-ins/Math/fround/length.js new file mode 100755 index 0000000000..483abce16a --- /dev/null +++ b/test/built-ins/Math/fround/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.17 +description: > + Math.fround.length is 1. +info: > + Math.fround ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.fround.length, 1); + +verifyNotEnumerable(Math.fround, "length"); +verifyNotWritable(Math.fround, "length"); +verifyConfigurable(Math.fround, "length"); diff --git a/test/built-ins/Math/fround/name.js b/test/built-ins/Math/fround/name.js new file mode 100755 index 0000000000..bf28cd19aa --- /dev/null +++ b/test/built-ins/Math/fround/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.17 +description: > + Math.fround.name is "fround". +info: > + Math.fround ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.fround.name, "fround"); + +verifyNotEnumerable(Math.fround, "name"); +verifyNotWritable(Math.fround, "name"); +verifyConfigurable(Math.fround, "name"); diff --git a/test/built-ins/Math/hypot/name.js b/test/built-ins/Math/hypot/name.js new file mode 100755 index 0000000000..34e55b5015 --- /dev/null +++ b/test/built-ins/Math/hypot/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.18 +description: > + Math.hypot.name is "hypot". +info: > + Math.hypot ( value1 , value2 , …values ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.hypot.name, "hypot"); + +verifyNotEnumerable(Math.hypot, "name"); +verifyNotWritable(Math.hypot, "name"); +verifyConfigurable(Math.hypot, "name"); diff --git a/test/built-ins/Math/imul/name.js b/test/built-ins/Math/imul/name.js new file mode 100755 index 0000000000..cf6c423bdf --- /dev/null +++ b/test/built-ins/Math/imul/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.19 +description: > + Math.imul.name is "imul". +info: > + Math.imul ( x, y ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.imul.name, "imul"); + +verifyNotEnumerable(Math.imul, "name"); +verifyNotWritable(Math.imul, "name"); +verifyConfigurable(Math.imul, "name"); diff --git a/test/built-ins/Math/log/length.js b/test/built-ins/Math/log/length.js new file mode 100755 index 0000000000..ecc44d548c --- /dev/null +++ b/test/built-ins/Math/log/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.20 +description: > + Math.log.length is 1. +info: > + Math.log ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.log.length, 1); + +verifyNotEnumerable(Math.log, "length"); +verifyNotWritable(Math.log, "length"); +verifyConfigurable(Math.log, "length"); diff --git a/test/built-ins/Math/log/name.js b/test/built-ins/Math/log/name.js new file mode 100755 index 0000000000..bd46dbaaf1 --- /dev/null +++ b/test/built-ins/Math/log/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.20 +description: > + Math.log.name is "log". +info: > + Math.log ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.log.name, "log"); + +verifyNotEnumerable(Math.log, "name"); +verifyNotWritable(Math.log, "name"); +verifyConfigurable(Math.log, "name"); diff --git a/test/built-ins/Math/log10/name.js b/test/built-ins/Math/log10/name.js new file mode 100755 index 0000000000..11c3458239 --- /dev/null +++ b/test/built-ins/Math/log10/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.22 +description: > + Math.log10.name is "log10". +info: > + Math.log10 ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.log10.name, "log10"); + +verifyNotEnumerable(Math.log10, "name"); +verifyNotWritable(Math.log10, "name"); +verifyConfigurable(Math.log10, "name"); diff --git a/test/built-ins/Math/log1p/name.js b/test/built-ins/Math/log1p/name.js new file mode 100755 index 0000000000..7f5048b9e5 --- /dev/null +++ b/test/built-ins/Math/log1p/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.21 +description: > + Math.log1p.name is "log1p". +info: > + Math.log1p ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.log1p.name, "log1p"); + +verifyNotEnumerable(Math.log1p, "name"); +verifyNotWritable(Math.log1p, "name"); +verifyConfigurable(Math.log1p, "name"); diff --git a/test/built-ins/Math/log2/name.js b/test/built-ins/Math/log2/name.js new file mode 100755 index 0000000000..4b319a0674 --- /dev/null +++ b/test/built-ins/Math/log2/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.23 +description: > + Math.log2.name is "log2". +info: > + Math.log2 ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.log2.name, "log2"); + +verifyNotEnumerable(Math.log2, "name"); +verifyNotWritable(Math.log2, "name"); +verifyConfigurable(Math.log2, "name"); diff --git a/test/built-ins/Math/max/name.js b/test/built-ins/Math/max/name.js new file mode 100755 index 0000000000..e641093676 --- /dev/null +++ b/test/built-ins/Math/max/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.24 +description: > + Math.max.name is "max". +info: > + Math.max ( value1, value2 , …values ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.max.name, "max"); + +verifyNotEnumerable(Math.max, "name"); +verifyNotWritable(Math.max, "name"); +verifyConfigurable(Math.max, "name"); diff --git a/test/built-ins/Math/min/name.js b/test/built-ins/Math/min/name.js new file mode 100755 index 0000000000..65e0cb2a90 --- /dev/null +++ b/test/built-ins/Math/min/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.25 +description: > + Math.min.name is "min". +info: > + Math.min ( value1, value2 , …values ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.min.name, "min"); + +verifyNotEnumerable(Math.min, "name"); +verifyNotWritable(Math.min, "name"); +verifyConfigurable(Math.min, "name"); diff --git a/test/built-ins/Math/pow/length.js b/test/built-ins/Math/pow/length.js new file mode 100755 index 0000000000..7c893b6240 --- /dev/null +++ b/test/built-ins/Math/pow/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.26 +description: > + Math.pow.length is 2. +info: > + Math.pow ( x, y ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.pow.length, 2); + +verifyNotEnumerable(Math.pow, "length"); +verifyNotWritable(Math.pow, "length"); +verifyConfigurable(Math.pow, "length"); diff --git a/test/built-ins/Math/pow/name.js b/test/built-ins/Math/pow/name.js new file mode 100755 index 0000000000..1657ad9094 --- /dev/null +++ b/test/built-ins/Math/pow/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.26 +description: > + Math.pow.name is "pow". +info: > + Math.pow ( x, y ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.pow.name, "pow"); + +verifyNotEnumerable(Math.pow, "name"); +verifyNotWritable(Math.pow, "name"); +verifyConfigurable(Math.pow, "name"); diff --git a/test/built-ins/Math/random/length.js b/test/built-ins/Math/random/length.js new file mode 100755 index 0000000000..e89981dafb --- /dev/null +++ b/test/built-ins/Math/random/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.27 +description: > + Math.random.length is 0. +info: > + Math.random ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.random.length, 0); + +verifyNotEnumerable(Math.random, "length"); +verifyNotWritable(Math.random, "length"); +verifyConfigurable(Math.random, "length"); diff --git a/test/built-ins/Math/random/name.js b/test/built-ins/Math/random/name.js new file mode 100755 index 0000000000..c47025da55 --- /dev/null +++ b/test/built-ins/Math/random/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.27 +description: > + Math.random.name is "random". +info: > + Math.random ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.random.name, "random"); + +verifyNotEnumerable(Math.random, "name"); +verifyNotWritable(Math.random, "name"); +verifyConfigurable(Math.random, "name"); diff --git a/test/built-ins/Math/round/length.js b/test/built-ins/Math/round/length.js new file mode 100755 index 0000000000..071f6820f1 --- /dev/null +++ b/test/built-ins/Math/round/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.28 +description: > + Math.round.length is 1. +info: > + Math.round ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.round.length, 1); + +verifyNotEnumerable(Math.round, "length"); +verifyNotWritable(Math.round, "length"); +verifyConfigurable(Math.round, "length"); diff --git a/test/built-ins/Math/round/name.js b/test/built-ins/Math/round/name.js new file mode 100755 index 0000000000..4c71bfe8d7 --- /dev/null +++ b/test/built-ins/Math/round/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.28 +description: > + Math.round.name is "round". +info: > + Math.round ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.round.name, "round"); + +verifyNotEnumerable(Math.round, "name"); +verifyNotWritable(Math.round, "name"); +verifyConfigurable(Math.round, "name"); diff --git a/test/built-ins/Math/sign/name.js b/test/built-ins/Math/sign/name.js new file mode 100755 index 0000000000..89cbe60204 --- /dev/null +++ b/test/built-ins/Math/sign/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.29 +description: > + Math.sign.name is "sign". +info: > + Math.sign ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.sign.name, "sign"); + +verifyNotEnumerable(Math.sign, "name"); +verifyNotWritable(Math.sign, "name"); +verifyConfigurable(Math.sign, "name"); diff --git a/test/built-ins/Math/sin/length.js b/test/built-ins/Math/sin/length.js new file mode 100755 index 0000000000..55d6e5e8eb --- /dev/null +++ b/test/built-ins/Math/sin/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.30 +description: > + Math.sin.length is 1. +info: > + Math.sin ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.sin.length, 1); + +verifyNotEnumerable(Math.sin, "length"); +verifyNotWritable(Math.sin, "length"); +verifyConfigurable(Math.sin, "length"); diff --git a/test/built-ins/Math/sin/name.js b/test/built-ins/Math/sin/name.js new file mode 100755 index 0000000000..dec5bcf661 --- /dev/null +++ b/test/built-ins/Math/sin/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.30 +description: > + Math.sin.name is "sin". +info: > + Math.sin ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.sin.name, "sin"); + +verifyNotEnumerable(Math.sin, "name"); +verifyNotWritable(Math.sin, "name"); +verifyConfigurable(Math.sin, "name"); diff --git a/test/built-ins/Math/sinh/name.js b/test/built-ins/Math/sinh/name.js new file mode 100755 index 0000000000..2ff1a269c5 --- /dev/null +++ b/test/built-ins/Math/sinh/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.31 +description: > + Math.sinh.name is "sinh". +info: > + Math.sinh ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.sinh.name, "sinh"); + +verifyNotEnumerable(Math.sinh, "name"); +verifyNotWritable(Math.sinh, "name"); +verifyConfigurable(Math.sinh, "name"); diff --git a/test/built-ins/Math/sqrt/length.js b/test/built-ins/Math/sqrt/length.js new file mode 100755 index 0000000000..3ca90f5d8c --- /dev/null +++ b/test/built-ins/Math/sqrt/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.32 +description: > + Math.sqrt.length is 1. +info: > + Math.sqrt ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.sqrt.length, 1); + +verifyNotEnumerable(Math.sqrt, "length"); +verifyNotWritable(Math.sqrt, "length"); +verifyConfigurable(Math.sqrt, "length"); diff --git a/test/built-ins/Math/sqrt/name.js b/test/built-ins/Math/sqrt/name.js new file mode 100755 index 0000000000..425c39c0ca --- /dev/null +++ b/test/built-ins/Math/sqrt/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.32 +description: > + Math.sqrt.name is "sqrt". +info: > + Math.sqrt ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.sqrt.name, "sqrt"); + +verifyNotEnumerable(Math.sqrt, "name"); +verifyNotWritable(Math.sqrt, "name"); +verifyConfigurable(Math.sqrt, "name"); diff --git a/test/built-ins/Math/tan/length.js b/test/built-ins/Math/tan/length.js new file mode 100755 index 0000000000..ebfc53fa82 --- /dev/null +++ b/test/built-ins/Math/tan/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.33 +description: > + Math.tan.length is 1. +info: > + Math.tan ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.tan.length, 1); + +verifyNotEnumerable(Math.tan, "length"); +verifyNotWritable(Math.tan, "length"); +verifyConfigurable(Math.tan, "length"); diff --git a/test/built-ins/Math/tan/name.js b/test/built-ins/Math/tan/name.js new file mode 100755 index 0000000000..bef908adc8 --- /dev/null +++ b/test/built-ins/Math/tan/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.33 +description: > + Math.tan.name is "tan". +info: > + Math.tan ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.tan.name, "tan"); + +verifyNotEnumerable(Math.tan, "name"); +verifyNotWritable(Math.tan, "name"); +verifyConfigurable(Math.tan, "name"); diff --git a/test/built-ins/Math/tanh/name.js b/test/built-ins/Math/tanh/name.js new file mode 100755 index 0000000000..37e672f613 --- /dev/null +++ b/test/built-ins/Math/tanh/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.34 +description: > + Math.tanh.name is "tanh". +info: > + Math.tanh ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.tanh.name, "tanh"); + +verifyNotEnumerable(Math.tanh, "name"); +verifyNotWritable(Math.tanh, "name"); +verifyConfigurable(Math.tanh, "name"); diff --git a/test/built-ins/Math/trunc/name.js b/test/built-ins/Math/trunc/name.js new file mode 100755 index 0000000000..cb52f991c5 --- /dev/null +++ b/test/built-ins/Math/trunc/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.2.2.35 +description: > + Math.trunc.name is "trunc". +info: > + Math.trunc ( x ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Math.trunc.name, "trunc"); + +verifyNotEnumerable(Math.trunc, "name"); +verifyNotWritable(Math.trunc, "name"); +verifyConfigurable(Math.trunc, "name"); diff --git a/test/built-ins/Number/isFinite/length.js b/test/built-ins/Number/isFinite/length.js new file mode 100755 index 0000000000..b7596554ac --- /dev/null +++ b/test/built-ins/Number/isFinite/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.2 +description: > + Number.isFinite.length is 1. +info: > + Number.isFinite ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isFinite.length, 1); + +verifyNotEnumerable(Number.isFinite, "length"); +verifyNotWritable(Number.isFinite, "length"); +verifyConfigurable(Number.isFinite, "length"); diff --git a/test/built-ins/Number/isFinite/name.js b/test/built-ins/Number/isFinite/name.js new file mode 100755 index 0000000000..76e700420f --- /dev/null +++ b/test/built-ins/Number/isFinite/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.2 +description: > + Number.isFinite.name is "isFinite". +info: > + Number.isFinite ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isFinite.name, "isFinite"); + +verifyNotEnumerable(Number.isFinite, "name"); +verifyNotWritable(Number.isFinite, "name"); +verifyConfigurable(Number.isFinite, "name"); diff --git a/test/built-ins/Number/isInteger/length.js b/test/built-ins/Number/isInteger/length.js new file mode 100755 index 0000000000..cefaf2eb84 --- /dev/null +++ b/test/built-ins/Number/isInteger/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.3 +description: > + Number.isInteger.length is 1. +info: > + Number.isInteger ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isInteger.length, 1); + +verifyNotEnumerable(Number.isInteger, "length"); +verifyNotWritable(Number.isInteger, "length"); +verifyConfigurable(Number.isInteger, "length"); diff --git a/test/built-ins/Number/isInteger/name.js b/test/built-ins/Number/isInteger/name.js new file mode 100755 index 0000000000..ccc62db977 --- /dev/null +++ b/test/built-ins/Number/isInteger/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.3 +description: > + Number.isInteger.name is "isInteger". +info: > + Number.isInteger ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isInteger.name, "isInteger"); + +verifyNotEnumerable(Number.isInteger, "name"); +verifyNotWritable(Number.isInteger, "name"); +verifyConfigurable(Number.isInteger, "name"); diff --git a/test/built-ins/Number/isNaN/length.js b/test/built-ins/Number/isNaN/length.js new file mode 100755 index 0000000000..7f7e8a6cbd --- /dev/null +++ b/test/built-ins/Number/isNaN/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.4 +description: > + Number.isNaN.length is 1. +info: > + Number.isNaN ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isNaN.length, 1); + +verifyNotEnumerable(Number.isNaN, "length"); +verifyNotWritable(Number.isNaN, "length"); +verifyConfigurable(Number.isNaN, "length"); diff --git a/test/built-ins/Number/isNaN/name.js b/test/built-ins/Number/isNaN/name.js new file mode 100755 index 0000000000..bfb2b1eace --- /dev/null +++ b/test/built-ins/Number/isNaN/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.4 +description: > + Number.isNaN.name is "isNaN". +info: > + Number.isNaN ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isNaN.name, "isNaN"); + +verifyNotEnumerable(Number.isNaN, "name"); +verifyNotWritable(Number.isNaN, "name"); +verifyConfigurable(Number.isNaN, "name"); diff --git a/test/built-ins/Number/isSafeInteger/length.js b/test/built-ins/Number/isSafeInteger/length.js new file mode 100755 index 0000000000..356441ec56 --- /dev/null +++ b/test/built-ins/Number/isSafeInteger/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.5 +description: > + Number.isSafeInteger.length is 1. +info: > + Number.isSafeInteger ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isSafeInteger.length, 1); + +verifyNotEnumerable(Number.isSafeInteger, "length"); +verifyNotWritable(Number.isSafeInteger, "length"); +verifyConfigurable(Number.isSafeInteger, "length"); diff --git a/test/built-ins/Number/isSafeInteger/name.js b/test/built-ins/Number/isSafeInteger/name.js new file mode 100755 index 0000000000..b928f53247 --- /dev/null +++ b/test/built-ins/Number/isSafeInteger/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.2.5 +description: > + Number.isSafeInteger.name is "isSafeInteger". +info: > + Number.isSafeInteger ( number ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.isSafeInteger.name, "isSafeInteger"); + +verifyNotEnumerable(Number.isSafeInteger, "name"); +verifyNotWritable(Number.isSafeInteger, "name"); +verifyConfigurable(Number.isSafeInteger, "name"); diff --git a/test/built-ins/Number/prototype/toExponential/length.js b/test/built-ins/Number/prototype/toExponential/length.js new file mode 100755 index 0000000000..4c45176628 --- /dev/null +++ b/test/built-ins/Number/prototype/toExponential/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.2 +description: > + Number.prototype.toExponential.length is 1. +info: > + Number.prototype.toExponential ( fractionDigits ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toExponential.length, 1); + +verifyNotEnumerable(Number.prototype.toExponential, "length"); +verifyNotWritable(Number.prototype.toExponential, "length"); +verifyConfigurable(Number.prototype.toExponential, "length"); diff --git a/test/built-ins/Number/prototype/toExponential/name.js b/test/built-ins/Number/prototype/toExponential/name.js new file mode 100755 index 0000000000..69fb8351f1 --- /dev/null +++ b/test/built-ins/Number/prototype/toExponential/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.2 +description: > + Number.prototype.toExponential.name is "toExponential". +info: > + Number.prototype.toExponential ( fractionDigits ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toExponential.name, "toExponential"); + +verifyNotEnumerable(Number.prototype.toExponential, "name"); +verifyNotWritable(Number.prototype.toExponential, "name"); +verifyConfigurable(Number.prototype.toExponential, "name"); diff --git a/test/built-ins/Number/prototype/toFixed/name.js b/test/built-ins/Number/prototype/toFixed/name.js new file mode 100755 index 0000000000..485213ac43 --- /dev/null +++ b/test/built-ins/Number/prototype/toFixed/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.3 +description: > + Number.prototype.toFixed.name is "toFixed". +info: > + Number.prototype.toFixed ( fractionDigits ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toFixed.name, "toFixed"); + +verifyNotEnumerable(Number.prototype.toFixed, "name"); +verifyNotWritable(Number.prototype.toFixed, "name"); +verifyConfigurable(Number.prototype.toFixed, "name"); diff --git a/test/built-ins/Number/prototype/toLocaleString/length.js b/test/built-ins/Number/prototype/toLocaleString/length.js new file mode 100755 index 0000000000..e7136cb812 --- /dev/null +++ b/test/built-ins/Number/prototype/toLocaleString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.4 +description: > + Number.prototype.toLocaleString.length is 0. +info: > + Number.prototype.toLocaleString( [ reserved1 [ , reserved2 ] ]) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toLocaleString.length, 0); + +verifyNotEnumerable(Number.prototype.toLocaleString, "length"); +verifyNotWritable(Number.prototype.toLocaleString, "length"); +verifyConfigurable(Number.prototype.toLocaleString, "length"); diff --git a/test/built-ins/Number/prototype/toLocaleString/name.js b/test/built-ins/Number/prototype/toLocaleString/name.js new file mode 100755 index 0000000000..80116d2711 --- /dev/null +++ b/test/built-ins/Number/prototype/toLocaleString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.4 +description: > + Number.prototype.toLocaleString.name is "toLocaleString". +info: > + Number.prototype.toLocaleString( [ reserved1 [ , reserved2 ] ]) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toLocaleString.name, "toLocaleString"); + +verifyNotEnumerable(Number.prototype.toLocaleString, "name"); +verifyNotWritable(Number.prototype.toLocaleString, "name"); +verifyConfigurable(Number.prototype.toLocaleString, "name"); diff --git a/test/built-ins/Number/prototype/toPrecision/length.js b/test/built-ins/Number/prototype/toPrecision/length.js new file mode 100755 index 0000000000..f4770744ca --- /dev/null +++ b/test/built-ins/Number/prototype/toPrecision/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.5 +description: > + Number.prototype.toPrecision.length is 1. +info: > + Number.prototype.toPrecision ( precision ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toPrecision.length, 1); + +verifyNotEnumerable(Number.prototype.toPrecision, "length"); +verifyNotWritable(Number.prototype.toPrecision, "length"); +verifyConfigurable(Number.prototype.toPrecision, "length"); diff --git a/test/built-ins/Number/prototype/toPrecision/name.js b/test/built-ins/Number/prototype/toPrecision/name.js new file mode 100755 index 0000000000..e235698581 --- /dev/null +++ b/test/built-ins/Number/prototype/toPrecision/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.5 +description: > + Number.prototype.toPrecision.name is "toPrecision". +info: > + Number.prototype.toPrecision ( precision ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toPrecision.name, "toPrecision"); + +verifyNotEnumerable(Number.prototype.toPrecision, "name"); +verifyNotWritable(Number.prototype.toPrecision, "name"); +verifyConfigurable(Number.prototype.toPrecision, "name"); diff --git a/test/built-ins/Number/prototype/toString/length.js b/test/built-ins/Number/prototype/toString/length.js new file mode 100755 index 0000000000..7ae2e182da --- /dev/null +++ b/test/built-ins/Number/prototype/toString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.6 +description: > + Number.prototype.toString.length is 1. +info: > + Number.prototype.toString ( [ radix ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toString.length, 1); + +verifyNotEnumerable(Number.prototype.toString, "length"); +verifyNotWritable(Number.prototype.toString, "length"); +verifyConfigurable(Number.prototype.toString, "length"); diff --git a/test/built-ins/Number/prototype/toString/name.js b/test/built-ins/Number/prototype/toString/name.js new file mode 100755 index 0000000000..99e825b38d --- /dev/null +++ b/test/built-ins/Number/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.6 +description: > + Number.prototype.toString.name is "toString". +info: > + Number.prototype.toString ( [ radix ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.toString.name, "toString"); + +verifyNotEnumerable(Number.prototype.toString, "name"); +verifyNotWritable(Number.prototype.toString, "name"); +verifyConfigurable(Number.prototype.toString, "name"); diff --git a/test/built-ins/Number/prototype/valueOf/length.js b/test/built-ins/Number/prototype/valueOf/length.js new file mode 100755 index 0000000000..7972f728fa --- /dev/null +++ b/test/built-ins/Number/prototype/valueOf/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.7 +description: > + Number.prototype.valueOf.length is 0. +info: > + Number.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.valueOf.length, 0); + +verifyNotEnumerable(Number.prototype.valueOf, "length"); +verifyNotWritable(Number.prototype.valueOf, "length"); +verifyConfigurable(Number.prototype.valueOf, "length"); diff --git a/test/built-ins/Number/prototype/valueOf/name.js b/test/built-ins/Number/prototype/valueOf/name.js new file mode 100755 index 0000000000..1931f3686f --- /dev/null +++ b/test/built-ins/Number/prototype/valueOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 20.1.3.7 +description: > + Number.prototype.valueOf.name is "valueOf". +info: > + Number.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Number.prototype.valueOf.name, "valueOf"); + +verifyNotEnumerable(Number.prototype.valueOf, "name"); +verifyNotWritable(Number.prototype.valueOf, "name"); +verifyConfigurable(Number.prototype.valueOf, "name"); diff --git a/test/built-ins/Object/create/name.js b/test/built-ins/Object/create/name.js new file mode 100755 index 0000000000..493a3805b1 --- /dev/null +++ b/test/built-ins/Object/create/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.2 +description: > + Object.create.name is "create". +info: > + Object.create ( O [ , Properties ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.create.name, "create"); + +verifyNotEnumerable(Object.create, "name"); +verifyNotWritable(Object.create, "name"); +verifyConfigurable(Object.create, "name"); diff --git a/test/built-ins/Object/defineProperties/name.js b/test/built-ins/Object/defineProperties/name.js new file mode 100755 index 0000000000..a426d0c028 --- /dev/null +++ b/test/built-ins/Object/defineProperties/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.3 +description: > + Object.defineProperties.name is "defineProperties". +info: > + Object.defineProperties ( O, Properties ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.defineProperties.name, "defineProperties"); + +verifyNotEnumerable(Object.defineProperties, "name"); +verifyNotWritable(Object.defineProperties, "name"); +verifyConfigurable(Object.defineProperties, "name"); diff --git a/test/built-ins/Object/defineProperty/name.js b/test/built-ins/Object/defineProperty/name.js new file mode 100755 index 0000000000..3437de49e4 --- /dev/null +++ b/test/built-ins/Object/defineProperty/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.4 +description: > + Object.defineProperty.name is "defineProperty". +info: > + Object.defineProperty ( O, P, Attributes ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.defineProperty.name, "defineProperty"); + +verifyNotEnumerable(Object.defineProperty, "name"); +verifyNotWritable(Object.defineProperty, "name"); +verifyConfigurable(Object.defineProperty, "name"); diff --git a/test/built-ins/Object/freeze/name.js b/test/built-ins/Object/freeze/name.js new file mode 100755 index 0000000000..14e4422926 --- /dev/null +++ b/test/built-ins/Object/freeze/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.5 +description: > + Object.freeze.name is "freeze". +info: > + Object.freeze ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.freeze.name, "freeze"); + +verifyNotEnumerable(Object.freeze, "name"); +verifyNotWritable(Object.freeze, "name"); +verifyConfigurable(Object.freeze, "name"); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/name.js b/test/built-ins/Object/getOwnPropertyDescriptor/name.js new file mode 100755 index 0000000000..a50d538455 --- /dev/null +++ b/test/built-ins/Object/getOwnPropertyDescriptor/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.6 +description: > + Object.getOwnPropertyDescriptor.name is "getOwnPropertyDescriptor". +info: > + Object.getOwnPropertyDescriptor ( O, P ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.getOwnPropertyDescriptor.name, "getOwnPropertyDescriptor"); + +verifyNotEnumerable(Object.getOwnPropertyDescriptor, "name"); +verifyNotWritable(Object.getOwnPropertyDescriptor, "name"); +verifyConfigurable(Object.getOwnPropertyDescriptor, "name"); diff --git a/test/built-ins/Object/getOwnPropertyNames/name.js b/test/built-ins/Object/getOwnPropertyNames/name.js new file mode 100755 index 0000000000..674b03428c --- /dev/null +++ b/test/built-ins/Object/getOwnPropertyNames/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.7 +description: > + Object.getOwnPropertyNames.name is "getOwnPropertyNames". +info: > + Object.getOwnPropertyNames ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.getOwnPropertyNames.name, "getOwnPropertyNames"); + +verifyNotEnumerable(Object.getOwnPropertyNames, "name"); +verifyNotWritable(Object.getOwnPropertyNames, "name"); +verifyConfigurable(Object.getOwnPropertyNames, "name"); diff --git a/test/built-ins/Object/getOwnPropertySymbols/length.js b/test/built-ins/Object/getOwnPropertySymbols/length.js new file mode 100755 index 0000000000..cbb62b1aa7 --- /dev/null +++ b/test/built-ins/Object/getOwnPropertySymbols/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.8 +description: > + Object.getOwnPropertySymbols.length is 1. +info: > + Object.getOwnPropertySymbols ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.getOwnPropertySymbols.length, 1); + +verifyNotEnumerable(Object.getOwnPropertySymbols, "length"); +verifyNotWritable(Object.getOwnPropertySymbols, "length"); +verifyConfigurable(Object.getOwnPropertySymbols, "length"); diff --git a/test/built-ins/Object/getOwnPropertySymbols/name.js b/test/built-ins/Object/getOwnPropertySymbols/name.js new file mode 100755 index 0000000000..7346a1e4d7 --- /dev/null +++ b/test/built-ins/Object/getOwnPropertySymbols/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.8 +description: > + Object.getOwnPropertySymbols.name is "getOwnPropertySymbols". +info: > + Object.getOwnPropertySymbols ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.getOwnPropertySymbols.name, "getOwnPropertySymbols"); + +verifyNotEnumerable(Object.getOwnPropertySymbols, "name"); +verifyNotWritable(Object.getOwnPropertySymbols, "name"); +verifyConfigurable(Object.getOwnPropertySymbols, "name"); diff --git a/test/built-ins/Object/getPrototypeOf/name.js b/test/built-ins/Object/getPrototypeOf/name.js new file mode 100755 index 0000000000..25c1527e21 --- /dev/null +++ b/test/built-ins/Object/getPrototypeOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.9 +description: > + Object.getPrototypeOf.name is "getPrototypeOf". +info: > + Object.getPrototypeOf ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.getPrototypeOf.name, "getPrototypeOf"); + +verifyNotEnumerable(Object.getPrototypeOf, "name"); +verifyNotWritable(Object.getPrototypeOf, "name"); +verifyConfigurable(Object.getPrototypeOf, "name"); diff --git a/test/built-ins/Object/isExtensible/name.js b/test/built-ins/Object/isExtensible/name.js new file mode 100755 index 0000000000..66544d545b --- /dev/null +++ b/test/built-ins/Object/isExtensible/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.11 +description: > + Object.isExtensible.name is "isExtensible". +info: > + Object.isExtensible ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.isExtensible.name, "isExtensible"); + +verifyNotEnumerable(Object.isExtensible, "name"); +verifyNotWritable(Object.isExtensible, "name"); +verifyConfigurable(Object.isExtensible, "name"); diff --git a/test/built-ins/Object/isFrozen/name.js b/test/built-ins/Object/isFrozen/name.js new file mode 100755 index 0000000000..c7c1bd00fc --- /dev/null +++ b/test/built-ins/Object/isFrozen/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.12 +description: > + Object.isFrozen.name is "isFrozen". +info: > + Object.isFrozen ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.isFrozen.name, "isFrozen"); + +verifyNotEnumerable(Object.isFrozen, "name"); +verifyNotWritable(Object.isFrozen, "name"); +verifyConfigurable(Object.isFrozen, "name"); diff --git a/test/built-ins/Object/isSealed/name.js b/test/built-ins/Object/isSealed/name.js new file mode 100755 index 0000000000..6c7d502de7 --- /dev/null +++ b/test/built-ins/Object/isSealed/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.13 +description: > + Object.isSealed.name is "isSealed". +info: > + Object.isSealed ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.isSealed.name, "isSealed"); + +verifyNotEnumerable(Object.isSealed, "name"); +verifyNotWritable(Object.isSealed, "name"); +verifyConfigurable(Object.isSealed, "name"); diff --git a/test/built-ins/Object/keys/name.js b/test/built-ins/Object/keys/name.js new file mode 100755 index 0000000000..264119a6f7 --- /dev/null +++ b/test/built-ins/Object/keys/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.14 +description: > + Object.keys.name is "keys". +info: > + Object.keys ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.keys.name, "keys"); + +verifyNotEnumerable(Object.keys, "name"); +verifyNotWritable(Object.keys, "name"); +verifyConfigurable(Object.keys, "name"); diff --git a/test/built-ins/Object/preventExtensions/name.js b/test/built-ins/Object/preventExtensions/name.js new file mode 100755 index 0000000000..5c1786cfac --- /dev/null +++ b/test/built-ins/Object/preventExtensions/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.15 +description: > + Object.preventExtensions.name is "preventExtensions". +info: > + Object.preventExtensions ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.preventExtensions.name, "preventExtensions"); + +verifyNotEnumerable(Object.preventExtensions, "name"); +verifyNotWritable(Object.preventExtensions, "name"); +verifyConfigurable(Object.preventExtensions, "name"); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/name.js b/test/built-ins/Object/prototype/hasOwnProperty/name.js new file mode 100755 index 0000000000..917711f294 --- /dev/null +++ b/test/built-ins/Object/prototype/hasOwnProperty/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.3.2 +description: > + Object.prototype.hasOwnProperty.name is "hasOwnProperty". +info: > + Object.prototype.hasOwnProperty ( V ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.prototype.hasOwnProperty.name, "hasOwnProperty"); + +verifyNotEnumerable(Object.prototype.hasOwnProperty, "name"); +verifyNotWritable(Object.prototype.hasOwnProperty, "name"); +verifyConfigurable(Object.prototype.hasOwnProperty, "name"); diff --git a/test/built-ins/Object/prototype/isPrototypeOf/name.js b/test/built-ins/Object/prototype/isPrototypeOf/name.js new file mode 100755 index 0000000000..1bac4500f0 --- /dev/null +++ b/test/built-ins/Object/prototype/isPrototypeOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.3.3 +description: > + Object.prototype.isPrototypeOf.name is "isPrototypeOf". +info: > + Object.prototype.isPrototypeOf ( V ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.prototype.isPrototypeOf.name, "isPrototypeOf"); + +verifyNotEnumerable(Object.prototype.isPrototypeOf, "name"); +verifyNotWritable(Object.prototype.isPrototypeOf, "name"); +verifyConfigurable(Object.prototype.isPrototypeOf, "name"); diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/name.js b/test/built-ins/Object/prototype/propertyIsEnumerable/name.js new file mode 100755 index 0000000000..199b560d37 --- /dev/null +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.3.4 +description: > + Object.prototype.propertyIsEnumerable.name is "propertyIsEnumerable". +info: > + Object.prototype.propertyIsEnumerable ( V ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.prototype.propertyIsEnumerable.name, "propertyIsEnumerable"); + +verifyNotEnumerable(Object.prototype.propertyIsEnumerable, "name"); +verifyNotWritable(Object.prototype.propertyIsEnumerable, "name"); +verifyConfigurable(Object.prototype.propertyIsEnumerable, "name"); diff --git a/test/built-ins/Object/prototype/toLocaleString/name.js b/test/built-ins/Object/prototype/toLocaleString/name.js new file mode 100755 index 0000000000..5fbb356afb --- /dev/null +++ b/test/built-ins/Object/prototype/toLocaleString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.3.5 +description: > + Object.prototype.toLocaleString.name is "toLocaleString". +info: > + Object.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.prototype.toLocaleString.name, "toLocaleString"); + +verifyNotEnumerable(Object.prototype.toLocaleString, "name"); +verifyNotWritable(Object.prototype.toLocaleString, "name"); +verifyConfigurable(Object.prototype.toLocaleString, "name"); diff --git a/test/built-ins/Object/prototype/toString/name.js b/test/built-ins/Object/prototype/toString/name.js new file mode 100755 index 0000000000..d8fd3db843 --- /dev/null +++ b/test/built-ins/Object/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.3.6 +description: > + Object.prototype.toString.name is "toString". +info: > + Object.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.prototype.toString.name, "toString"); + +verifyNotEnumerable(Object.prototype.toString, "name"); +verifyNotWritable(Object.prototype.toString, "name"); +verifyConfigurable(Object.prototype.toString, "name"); diff --git a/test/built-ins/Object/prototype/valueOf/name.js b/test/built-ins/Object/prototype/valueOf/name.js new file mode 100755 index 0000000000..90900cc35e --- /dev/null +++ b/test/built-ins/Object/prototype/valueOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.3.7 +description: > + Object.prototype.valueOf.name is "valueOf". +info: > + Object.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.prototype.valueOf.name, "valueOf"); + +verifyNotEnumerable(Object.prototype.valueOf, "name"); +verifyNotWritable(Object.prototype.valueOf, "name"); +verifyConfigurable(Object.prototype.valueOf, "name"); diff --git a/test/built-ins/Object/seal/name.js b/test/built-ins/Object/seal/name.js new file mode 100755 index 0000000000..951940a0c9 --- /dev/null +++ b/test/built-ins/Object/seal/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.1.2.17 +description: > + Object.seal.name is "seal". +info: > + Object.seal ( O ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Object.seal.name, "seal"); + +verifyNotEnumerable(Object.seal, "name"); +verifyNotWritable(Object.seal, "name"); +verifyConfigurable(Object.seal, "name"); diff --git a/test/built-ins/Promise/Symbol.species/length.js b/test/built-ins/Promise/Symbol.species/length.js new file mode 100755 index 0000000000..708ab316dc --- /dev/null +++ b/test/built-ins/Promise/Symbol.species/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 25.4.4.6 +description: > + get Promise [ @@species ].length is 0. +info: > + get Promise [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(Promise, Symbol.species); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/Proxy/revocable/length.js b/test/built-ins/Proxy/revocable/length.js new file mode 100755 index 0000000000..dfd24f1c5b --- /dev/null +++ b/test/built-ins/Proxy/revocable/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 26.2.2.1 +description: > + Proxy.revocable.length is 2. +info: > + Proxy.revocable ( target, handler ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Proxy.revocable.length, 2); + +verifyNotEnumerable(Proxy.revocable, "length"); +verifyNotWritable(Proxy.revocable, "length"); +verifyConfigurable(Proxy.revocable, "length"); diff --git a/test/built-ins/Proxy/revocable/name.js b/test/built-ins/Proxy/revocable/name.js new file mode 100755 index 0000000000..ac9239b271 --- /dev/null +++ b/test/built-ins/Proxy/revocable/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 26.2.2.1 +description: > + Proxy.revocable.name is "revocable". +info: > + Proxy.revocable ( target, handler ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Proxy.revocable.name, "revocable"); + +verifyNotEnumerable(Proxy.revocable, "name"); +verifyNotWritable(Proxy.revocable, "name"); +verifyConfigurable(Proxy.revocable, "name"); diff --git a/test/built-ins/RegExp/Symbol.species/length.js b/test/built-ins/RegExp/Symbol.species/length.js new file mode 100755 index 0000000000..131178f027 --- /dev/null +++ b/test/built-ins/RegExp/Symbol.species/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.4.2 +description: > + get RegExp [ @@species ].length is 0. +info: > + get RegExp [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(RegExp, Symbol.species); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/RegExp/prototype/exec/name.js b/test/built-ins/RegExp/prototype/exec/name.js new file mode 100755 index 0000000000..cd145ec46c --- /dev/null +++ b/test/built-ins/RegExp/prototype/exec/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.2 +description: > + RegExp.prototype.exec.name is "exec". +info: > + RegExp.prototype.exec ( string ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RegExp.prototype.exec.name, "exec"); + +verifyNotEnumerable(RegExp.prototype.exec, "name"); +verifyNotWritable(RegExp.prototype.exec, "name"); +verifyConfigurable(RegExp.prototype.exec, "name"); diff --git a/test/built-ins/RegExp/prototype/flags/length.js b/test/built-ins/RegExp/prototype/flags/length.js new file mode 100755 index 0000000000..daec3fce37 --- /dev/null +++ b/test/built-ins/RegExp/prototype/flags/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.3 +description: > + get RegExp.prototype.flags.length is 0. +info: > + get RegExp.prototype.flags + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "flags"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/RegExp/prototype/global/length.js b/test/built-ins/RegExp/prototype/global/length.js new file mode 100755 index 0000000000..70c4b2b0a6 --- /dev/null +++ b/test/built-ins/RegExp/prototype/global/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.4 +description: > + get RegExp.prototype.global.length is 0. +info: > + get RegExp.prototype.global + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/RegExp/prototype/ignoreCase/length.js b/test/built-ins/RegExp/prototype/ignoreCase/length.js new file mode 100755 index 0000000000..7c7d0bf2f8 --- /dev/null +++ b/test/built-ins/RegExp/prototype/ignoreCase/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.5 +description: > + get RegExp.prototype.ignoreCase.length is 0. +info: > + get RegExp.prototype.ignoreCase + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/RegExp/prototype/multiline/length.js b/test/built-ins/RegExp/prototype/multiline/length.js new file mode 100755 index 0000000000..f943406986 --- /dev/null +++ b/test/built-ins/RegExp/prototype/multiline/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.7 +description: > + get RegExp.prototype.multiline.length is 0. +info: > + get RegExp.prototype.multiline + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/RegExp/prototype/source/length.js b/test/built-ins/RegExp/prototype/source/length.js new file mode 100755 index 0000000000..15f53cd62b --- /dev/null +++ b/test/built-ins/RegExp/prototype/source/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.10 +description: > + get RegExp.prototype.source.length is 0. +info: > + get RegExp.prototype.source + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/RegExp/prototype/sticky/length.js b/test/built-ins/RegExp/prototype/sticky/length.js new file mode 100755 index 0000000000..f1431ad112 --- /dev/null +++ b/test/built-ins/RegExp/prototype/sticky/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.12 +description: > + get RegExp.prototype.sticky.length is 0. +info: > + get RegExp.prototype.sticky + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "sticky"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/RegExp/prototype/test/name.js b/test/built-ins/RegExp/prototype/test/name.js new file mode 100755 index 0000000000..d5d540f247 --- /dev/null +++ b/test/built-ins/RegExp/prototype/test/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.13 +description: > + RegExp.prototype.test.name is "test". +info: > + RegExp.prototype.test( S ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RegExp.prototype.test.name, "test"); + +verifyNotEnumerable(RegExp.prototype.test, "name"); +verifyNotWritable(RegExp.prototype.test, "name"); +verifyConfigurable(RegExp.prototype.test, "name"); diff --git a/test/built-ins/RegExp/prototype/toString/name.js b/test/built-ins/RegExp/prototype/toString/name.js new file mode 100755 index 0000000000..ae81e6c770 --- /dev/null +++ b/test/built-ins/RegExp/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.2.5.14 +description: > + RegExp.prototype.toString.name is "toString". +info: > + RegExp.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RegExp.prototype.toString.name, "toString"); + +verifyNotEnumerable(RegExp.prototype.toString, "name"); +verifyNotWritable(RegExp.prototype.toString, "name"); +verifyConfigurable(RegExp.prototype.toString, "name"); diff --git a/test/built-ins/Set/Symbol.species/length.js b/test/built-ins/Set/Symbol.species/length.js new file mode 100755 index 0000000000..35218eac46 --- /dev/null +++ b/test/built-ins/Set/Symbol.species/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 23.2.2.2 +description: > + get Set [ @@species ].length is 0. +info: > + get Set [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(Set, Symbol.species); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/SetIteratorPrototype/next/length.js b/test/built-ins/SetIteratorPrototype/next/length.js new file mode 100755 index 0000000000..ac4f5918ef --- /dev/null +++ b/test/built-ins/SetIteratorPrototype/next/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 23.2.5.2.1 +description: > + %SetIteratorPrototype%.next.length is 0. +info: > + %SetIteratorPrototype%.next ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var SetIteratorProto = Object.getPrototypeOf(new Set().values()); + +assert.sameValue(SetIteratorProto.next.length, 0); + +verifyNotEnumerable(SetIteratorProto.next, "length"); +verifyNotWritable(SetIteratorProto.next, "length"); +verifyConfigurable(SetIteratorProto.next, "length"); diff --git a/test/built-ins/SetIteratorPrototype/next/name.js b/test/built-ins/SetIteratorPrototype/next/name.js new file mode 100755 index 0000000000..9ce68e5628 --- /dev/null +++ b/test/built-ins/SetIteratorPrototype/next/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 23.2.5.2.1 +description: > + %SetIteratorPrototype%.next.name is "next". +info: > + %SetIteratorPrototype%.next ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var SetIteratorProto = Object.getPrototypeOf(new Set().values()); + +assert.sameValue(SetIteratorProto.next.name, "next"); + +verifyNotEnumerable(SetIteratorProto.next, "name"); +verifyNotWritable(SetIteratorProto.next, "name"); +verifyConfigurable(SetIteratorProto.next, "name"); diff --git a/test/built-ins/String/fromCharCode/name.js b/test/built-ins/String/fromCharCode/name.js new file mode 100755 index 0000000000..4f45d982c6 --- /dev/null +++ b/test/built-ins/String/fromCharCode/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.2.1 +description: > + String.fromCharCode.name is "fromCharCode". +info: > + String.fromCharCode ( ...codeUnits ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.fromCharCode.name, "fromCharCode"); + +verifyNotEnumerable(String.fromCharCode, "name"); +verifyNotWritable(String.fromCharCode, "name"); +verifyConfigurable(String.fromCharCode, "name"); diff --git a/test/built-ins/String/prototype/charAt/name.js b/test/built-ins/String/prototype/charAt/name.js new file mode 100755 index 0000000000..d451630a4d --- /dev/null +++ b/test/built-ins/String/prototype/charAt/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.1 +description: > + String.prototype.charAt.name is "charAt". +info: > + String.prototype.charAt ( pos ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.charAt.name, "charAt"); + +verifyNotEnumerable(String.prototype.charAt, "name"); +verifyNotWritable(String.prototype.charAt, "name"); +verifyConfigurable(String.prototype.charAt, "name"); diff --git a/test/built-ins/String/prototype/charCodeAt/name.js b/test/built-ins/String/prototype/charCodeAt/name.js new file mode 100755 index 0000000000..a03bb78fe6 --- /dev/null +++ b/test/built-ins/String/prototype/charCodeAt/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.2 +description: > + String.prototype.charCodeAt.name is "charCodeAt". +info: > + String.prototype.charCodeAt ( pos ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.charCodeAt.name, "charCodeAt"); + +verifyNotEnumerable(String.prototype.charCodeAt, "name"); +verifyNotWritable(String.prototype.charCodeAt, "name"); +verifyConfigurable(String.prototype.charCodeAt, "name"); diff --git a/test/built-ins/String/prototype/concat/name.js b/test/built-ins/String/prototype/concat/name.js new file mode 100755 index 0000000000..c13d67f4b6 --- /dev/null +++ b/test/built-ins/String/prototype/concat/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.4 +description: > + String.prototype.concat.name is "concat". +info: > + String.prototype.concat ( ...args ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.concat.name, "concat"); + +verifyNotEnumerable(String.prototype.concat, "name"); +verifyNotWritable(String.prototype.concat, "name"); +verifyConfigurable(String.prototype.concat, "name"); diff --git a/test/built-ins/String/prototype/indexOf/name.js b/test/built-ins/String/prototype/indexOf/name.js new file mode 100755 index 0000000000..22fd3fc4df --- /dev/null +++ b/test/built-ins/String/prototype/indexOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.8 +description: > + String.prototype.indexOf.name is "indexOf". +info: > + String.prototype.indexOf ( searchString [ , position ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.indexOf.name, "indexOf"); + +verifyNotEnumerable(String.prototype.indexOf, "name"); +verifyNotWritable(String.prototype.indexOf, "name"); +verifyConfigurable(String.prototype.indexOf, "name"); diff --git a/test/built-ins/String/prototype/lastIndexOf/name.js b/test/built-ins/String/prototype/lastIndexOf/name.js new file mode 100755 index 0000000000..d5b20dc0f2 --- /dev/null +++ b/test/built-ins/String/prototype/lastIndexOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.9 +description: > + String.prototype.lastIndexOf.name is "lastIndexOf". +info: > + String.prototype.lastIndexOf ( searchString [ , position ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.lastIndexOf.name, "lastIndexOf"); + +verifyNotEnumerable(String.prototype.lastIndexOf, "name"); +verifyNotWritable(String.prototype.lastIndexOf, "name"); +verifyConfigurable(String.prototype.lastIndexOf, "name"); diff --git a/test/built-ins/String/prototype/localeCompare/name.js b/test/built-ins/String/prototype/localeCompare/name.js new file mode 100755 index 0000000000..91cac4add7 --- /dev/null +++ b/test/built-ins/String/prototype/localeCompare/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.10 +description: > + String.prototype.localeCompare.name is "localeCompare". +info: > + String.prototype.localeCompare ( that [, reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.localeCompare.name, "localeCompare"); + +verifyNotEnumerable(String.prototype.localeCompare, "name"); +verifyNotWritable(String.prototype.localeCompare, "name"); +verifyConfigurable(String.prototype.localeCompare, "name"); diff --git a/test/built-ins/String/prototype/match/name.js b/test/built-ins/String/prototype/match/name.js new file mode 100755 index 0000000000..39eeb302c5 --- /dev/null +++ b/test/built-ins/String/prototype/match/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.11 +description: > + String.prototype.match.name is "match". +info: > + String.prototype.match ( regexp ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.match.name, "match"); + +verifyNotEnumerable(String.prototype.match, "name"); +verifyNotWritable(String.prototype.match, "name"); +verifyConfigurable(String.prototype.match, "name"); diff --git a/test/built-ins/String/prototype/replace/name.js b/test/built-ins/String/prototype/replace/name.js new file mode 100755 index 0000000000..8b30cd0cd9 --- /dev/null +++ b/test/built-ins/String/prototype/replace/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.14 +description: > + String.prototype.replace.name is "replace". +info: > + String.prototype.replace (searchValue, replaceValue ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.replace.name, "replace"); + +verifyNotEnumerable(String.prototype.replace, "name"); +verifyNotWritable(String.prototype.replace, "name"); +verifyConfigurable(String.prototype.replace, "name"); diff --git a/test/built-ins/String/prototype/search/name.js b/test/built-ins/String/prototype/search/name.js new file mode 100755 index 0000000000..5debfbc6e8 --- /dev/null +++ b/test/built-ins/String/prototype/search/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.15 +description: > + String.prototype.search.name is "search". +info: > + String.prototype.search ( regexp ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.search.name, "search"); + +verifyNotEnumerable(String.prototype.search, "name"); +verifyNotWritable(String.prototype.search, "name"); +verifyConfigurable(String.prototype.search, "name"); diff --git a/test/built-ins/String/prototype/slice/name.js b/test/built-ins/String/prototype/slice/name.js new file mode 100755 index 0000000000..99fe7683ed --- /dev/null +++ b/test/built-ins/String/prototype/slice/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.16 +description: > + String.prototype.slice.name is "slice". +info: > + String.prototype.slice ( start, end ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.slice.name, "slice"); + +verifyNotEnumerable(String.prototype.slice, "name"); +verifyNotWritable(String.prototype.slice, "name"); +verifyConfigurable(String.prototype.slice, "name"); diff --git a/test/built-ins/String/prototype/split/name.js b/test/built-ins/String/prototype/split/name.js new file mode 100755 index 0000000000..eb006c574c --- /dev/null +++ b/test/built-ins/String/prototype/split/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.17 +description: > + String.prototype.split.name is "split". +info: > + String.prototype.split ( separator, limit ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.split.name, "split"); + +verifyNotEnumerable(String.prototype.split, "name"); +verifyNotWritable(String.prototype.split, "name"); +verifyConfigurable(String.prototype.split, "name"); diff --git a/test/built-ins/String/prototype/substring/name.js b/test/built-ins/String/prototype/substring/name.js new file mode 100755 index 0000000000..b377cd95fc --- /dev/null +++ b/test/built-ins/String/prototype/substring/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.19 +description: > + String.prototype.substring.name is "substring". +info: > + String.prototype.substring ( start, end ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.substring.name, "substring"); + +verifyNotEnumerable(String.prototype.substring, "name"); +verifyNotWritable(String.prototype.substring, "name"); +verifyConfigurable(String.prototype.substring, "name"); diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/name.js b/test/built-ins/String/prototype/toLocaleLowerCase/name.js new file mode 100755 index 0000000000..9948722472 --- /dev/null +++ b/test/built-ins/String/prototype/toLocaleLowerCase/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.20 +description: > + String.prototype.toLocaleLowerCase.name is "toLocaleLowerCase". +info: > + String.prototype.toLocaleLowerCase ( [ reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.toLocaleLowerCase.name, "toLocaleLowerCase"); + +verifyNotEnumerable(String.prototype.toLocaleLowerCase, "name"); +verifyNotWritable(String.prototype.toLocaleLowerCase, "name"); +verifyConfigurable(String.prototype.toLocaleLowerCase, "name"); diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/name.js b/test/built-ins/String/prototype/toLocaleUpperCase/name.js new file mode 100755 index 0000000000..79df515e6f --- /dev/null +++ b/test/built-ins/String/prototype/toLocaleUpperCase/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.21 +description: > + String.prototype.toLocaleUpperCase.name is "toLocaleUpperCase". +info: > + String.prototype.toLocaleUpperCase ( [ reserved1 [ , reserved2 ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.toLocaleUpperCase.name, "toLocaleUpperCase"); + +verifyNotEnumerable(String.prototype.toLocaleUpperCase, "name"); +verifyNotWritable(String.prototype.toLocaleUpperCase, "name"); +verifyConfigurable(String.prototype.toLocaleUpperCase, "name"); diff --git a/test/built-ins/String/prototype/toLowerCase/name.js b/test/built-ins/String/prototype/toLowerCase/name.js new file mode 100755 index 0000000000..bed742c8d0 --- /dev/null +++ b/test/built-ins/String/prototype/toLowerCase/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.22 +description: > + String.prototype.toLowerCase.name is "toLowerCase". +info: > + String.prototype.toLowerCase ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.toLowerCase.name, "toLowerCase"); + +verifyNotEnumerable(String.prototype.toLowerCase, "name"); +verifyNotWritable(String.prototype.toLowerCase, "name"); +verifyConfigurable(String.prototype.toLowerCase, "name"); diff --git a/test/built-ins/String/prototype/toString/name.js b/test/built-ins/String/prototype/toString/name.js new file mode 100755 index 0000000000..07cb2b4e8b --- /dev/null +++ b/test/built-ins/String/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.23 +description: > + String.prototype.toString.name is "toString". +info: > + String.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.toString.name, "toString"); + +verifyNotEnumerable(String.prototype.toString, "name"); +verifyNotWritable(String.prototype.toString, "name"); +verifyConfigurable(String.prototype.toString, "name"); diff --git a/test/built-ins/String/prototype/toUpperCase/name.js b/test/built-ins/String/prototype/toUpperCase/name.js new file mode 100755 index 0000000000..d8cf419378 --- /dev/null +++ b/test/built-ins/String/prototype/toUpperCase/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.24 +description: > + String.prototype.toUpperCase.name is "toUpperCase". +info: > + String.prototype.toUpperCase ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.toUpperCase.name, "toUpperCase"); + +verifyNotEnumerable(String.prototype.toUpperCase, "name"); +verifyNotWritable(String.prototype.toUpperCase, "name"); +verifyConfigurable(String.prototype.toUpperCase, "name"); diff --git a/test/built-ins/String/prototype/trim/name.js b/test/built-ins/String/prototype/trim/name.js new file mode 100755 index 0000000000..0747f2f0b0 --- /dev/null +++ b/test/built-ins/String/prototype/trim/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.25 +description: > + String.prototype.trim.name is "trim". +info: > + String.prototype.trim ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.trim.name, "trim"); + +verifyNotEnumerable(String.prototype.trim, "name"); +verifyNotWritable(String.prototype.trim, "name"); +verifyConfigurable(String.prototype.trim, "name"); diff --git a/test/built-ins/String/prototype/valueOf/length.js b/test/built-ins/String/prototype/valueOf/length.js new file mode 100755 index 0000000000..d6de6ff023 --- /dev/null +++ b/test/built-ins/String/prototype/valueOf/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.26 +description: > + String.prototype.valueOf.length is 0. +info: > + String.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.valueOf.length, 0); + +verifyNotEnumerable(String.prototype.valueOf, "length"); +verifyNotWritable(String.prototype.valueOf, "length"); +verifyConfigurable(String.prototype.valueOf, "length"); diff --git a/test/built-ins/String/prototype/valueOf/name.js b/test/built-ins/String/prototype/valueOf/name.js new file mode 100755 index 0000000000..8b54a933be --- /dev/null +++ b/test/built-ins/String/prototype/valueOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.3.26 +description: > + String.prototype.valueOf.name is "valueOf". +info: > + String.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(String.prototype.valueOf.name, "valueOf"); + +verifyNotEnumerable(String.prototype.valueOf, "name"); +verifyNotWritable(String.prototype.valueOf, "name"); +verifyConfigurable(String.prototype.valueOf, "name"); diff --git a/test/built-ins/StringIteratorPrototype/next/length.js b/test/built-ins/StringIteratorPrototype/next/length.js new file mode 100755 index 0000000000..21af8b102e --- /dev/null +++ b/test/built-ins/StringIteratorPrototype/next/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.5.2.1 +description: > + %StringIteratorPrototype%.next.length is 0. +info: > + %StringIteratorPrototype%.next ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Symbol.iterator] +---*/ + +var StringIteratorProto = Object.getPrototypeOf(new String()[Symbol.iterator]()); + +assert.sameValue(StringIteratorProto.next.length, 0); + +verifyNotEnumerable(StringIteratorProto.next, "length"); +verifyNotWritable(StringIteratorProto.next, "length"); +verifyConfigurable(StringIteratorProto.next, "length"); diff --git a/test/built-ins/StringIteratorPrototype/next/name.js b/test/built-ins/StringIteratorPrototype/next/name.js new file mode 100755 index 0000000000..a0a9aae758 --- /dev/null +++ b/test/built-ins/StringIteratorPrototype/next/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 21.1.5.2.1 +description: > + %StringIteratorPrototype%.next.name is "next". +info: > + %StringIteratorPrototype%.next ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +var StringIteratorProto = Object.getPrototypeOf(new String()[Symbol.iterator]()); + +assert.sameValue(StringIteratorProto.next.name, "next"); + +verifyNotEnumerable(StringIteratorProto.next, "name"); +verifyNotWritable(StringIteratorProto.next, "name"); +verifyConfigurable(StringIteratorProto.next, "name"); diff --git a/test/built-ins/Symbol/for/length.js b/test/built-ins/Symbol/for/length.js new file mode 100755 index 0000000000..488209b40b --- /dev/null +++ b/test/built-ins/Symbol/for/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.2.1 +description: > + Symbol.for.length is 1. +info: > + Symbol.for ( key ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.for.length, 1); + +verifyNotEnumerable(Symbol.for, "length"); +verifyNotWritable(Symbol.for, "length"); +verifyConfigurable(Symbol.for, "length"); diff --git a/test/built-ins/Symbol/for/name.js b/test/built-ins/Symbol/for/name.js new file mode 100755 index 0000000000..03f03b871c --- /dev/null +++ b/test/built-ins/Symbol/for/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.2.1 +description: > + Symbol.for.name is "for". +info: > + Symbol.for ( key ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.for.name, "for"); + +verifyNotEnumerable(Symbol.for, "name"); +verifyNotWritable(Symbol.for, "name"); +verifyConfigurable(Symbol.for, "name"); diff --git a/test/built-ins/Symbol/keyFor/length.js b/test/built-ins/Symbol/keyFor/length.js new file mode 100755 index 0000000000..b16ed56d74 --- /dev/null +++ b/test/built-ins/Symbol/keyFor/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.2.5 +description: > + Symbol.keyFor.length is 1. +info: > + Symbol.keyFor ( sym ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.keyFor.length, 1); + +verifyNotEnumerable(Symbol.keyFor, "length"); +verifyNotWritable(Symbol.keyFor, "length"); +verifyConfigurable(Symbol.keyFor, "length"); diff --git a/test/built-ins/Symbol/keyFor/name.js b/test/built-ins/Symbol/keyFor/name.js new file mode 100755 index 0000000000..303622243f --- /dev/null +++ b/test/built-ins/Symbol/keyFor/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.2.5 +description: > + Symbol.keyFor.name is "keyFor". +info: > + Symbol.keyFor ( sym ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.keyFor.name, "keyFor"); + +verifyNotEnumerable(Symbol.keyFor, "name"); +verifyNotWritable(Symbol.keyFor, "name"); +verifyConfigurable(Symbol.keyFor, "name"); diff --git a/test/built-ins/Symbol/prototype/toString/length.js b/test/built-ins/Symbol/prototype/toString/length.js new file mode 100755 index 0000000000..6346aaa7ee --- /dev/null +++ b/test/built-ins/Symbol/prototype/toString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.3.2 +description: > + Symbol.prototype.toString.length is 0. +info: > + Symbol.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.prototype.toString.length, 0); + +verifyNotEnumerable(Symbol.prototype.toString, "length"); +verifyNotWritable(Symbol.prototype.toString, "length"); +verifyConfigurable(Symbol.prototype.toString, "length"); diff --git a/test/built-ins/Symbol/prototype/toString/name.js b/test/built-ins/Symbol/prototype/toString/name.js new file mode 100755 index 0000000000..5876c30982 --- /dev/null +++ b/test/built-ins/Symbol/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.3.2 +description: > + Symbol.prototype.toString.name is "toString". +info: > + Symbol.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.prototype.toString.name, "toString"); + +verifyNotEnumerable(Symbol.prototype.toString, "name"); +verifyNotWritable(Symbol.prototype.toString, "name"); +verifyConfigurable(Symbol.prototype.toString, "name"); diff --git a/test/built-ins/Symbol/prototype/valueOf/length.js b/test/built-ins/Symbol/prototype/valueOf/length.js new file mode 100755 index 0000000000..0b77cc8169 --- /dev/null +++ b/test/built-ins/Symbol/prototype/valueOf/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.3.3 +description: > + Symbol.prototype.valueOf.length is 0. +info: > + Symbol.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.prototype.valueOf.length, 0); + +verifyNotEnumerable(Symbol.prototype.valueOf, "length"); +verifyNotWritable(Symbol.prototype.valueOf, "length"); +verifyConfigurable(Symbol.prototype.valueOf, "length"); diff --git a/test/built-ins/Symbol/prototype/valueOf/name.js b/test/built-ins/Symbol/prototype/valueOf/name.js new file mode 100755 index 0000000000..856448462e --- /dev/null +++ b/test/built-ins/Symbol/prototype/valueOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.4.3.3 +description: > + Symbol.prototype.valueOf.name is "valueOf". +info: > + Symbol.prototype.valueOf ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Symbol.prototype.valueOf.name, "valueOf"); + +verifyNotEnumerable(Symbol.prototype.valueOf, "name"); +verifyNotWritable(Symbol.prototype.valueOf, "name"); +verifyConfigurable(Symbol.prototype.valueOf, "name"); diff --git a/test/built-ins/decodeURI/name.js b/test/built-ins/decodeURI/name.js new file mode 100755 index 0000000000..75a6412b33 --- /dev/null +++ b/test/built-ins/decodeURI/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.6.2 +description: > + decodeURI.name is "decodeURI". +info: > + decodeURI (encodedURI) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(decodeURI.name, "decodeURI"); + +verifyNotEnumerable(decodeURI, "name"); +verifyNotWritable(decodeURI, "name"); +verifyConfigurable(decodeURI, "name"); diff --git a/test/built-ins/decodeURIComponent/name.js b/test/built-ins/decodeURIComponent/name.js new file mode 100755 index 0000000000..a3d8794d44 --- /dev/null +++ b/test/built-ins/decodeURIComponent/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.6.3 +description: > + decodeURIComponent.name is "decodeURIComponent". +info: > + decodeURIComponent (encodedURIComponent) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(decodeURIComponent.name, "decodeURIComponent"); + +verifyNotEnumerable(decodeURIComponent, "name"); +verifyNotWritable(decodeURIComponent, "name"); +verifyConfigurable(decodeURIComponent, "name"); diff --git a/test/built-ins/encodeURI/name.js b/test/built-ins/encodeURI/name.js new file mode 100755 index 0000000000..dd8ddca6fa --- /dev/null +++ b/test/built-ins/encodeURI/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.6.4 +description: > + encodeURI.name is "encodeURI". +info: > + encodeURI (uri) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(encodeURI.name, "encodeURI"); + +verifyNotEnumerable(encodeURI, "name"); +verifyNotWritable(encodeURI, "name"); +verifyConfigurable(encodeURI, "name"); diff --git a/test/built-ins/encodeURIComponent/name.js b/test/built-ins/encodeURIComponent/name.js new file mode 100755 index 0000000000..3ba22ac73e --- /dev/null +++ b/test/built-ins/encodeURIComponent/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.6.5 +description: > + encodeURIComponent.name is "encodeURIComponent". +info: > + encodeURIComponent (uriComponent) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(encodeURIComponent.name, "encodeURIComponent"); + +verifyNotEnumerable(encodeURIComponent, "name"); +verifyNotWritable(encodeURIComponent, "name"); +verifyConfigurable(encodeURIComponent, "name"); diff --git a/test/built-ins/eval/name.js b/test/built-ins/eval/name.js new file mode 100755 index 0000000000..2b844d22a6 --- /dev/null +++ b/test/built-ins/eval/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.1 +description: > + eval.name is "eval". +info: > + eval (x) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(eval.name, "eval"); + +verifyNotEnumerable(eval, "name"); +verifyNotWritable(eval, "name"); +verifyConfigurable(eval, "name"); diff --git a/test/built-ins/isFinite/name.js b/test/built-ins/isFinite/name.js new file mode 100755 index 0000000000..d9775c23e4 --- /dev/null +++ b/test/built-ins/isFinite/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.2 +description: > + isFinite.name is "isFinite". +info: > + isFinite (number) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(isFinite.name, "isFinite"); + +verifyNotEnumerable(isFinite, "name"); +verifyNotWritable(isFinite, "name"); +verifyConfigurable(isFinite, "name"); diff --git a/test/built-ins/isNaN/name.js b/test/built-ins/isNaN/name.js new file mode 100755 index 0000000000..f4e7e50b6d --- /dev/null +++ b/test/built-ins/isNaN/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.3 +description: > + isNaN.name is "isNaN". +info: > + isNaN (number) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(isNaN.name, "isNaN"); + +verifyNotEnumerable(isNaN, "name"); +verifyNotWritable(isNaN, "name"); +verifyConfigurable(isNaN, "name"); diff --git a/test/built-ins/parseFloat/name.js b/test/built-ins/parseFloat/name.js new file mode 100755 index 0000000000..fc2f356ec2 --- /dev/null +++ b/test/built-ins/parseFloat/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.4 +description: > + parseFloat.name is "parseFloat". +info: > + parseFloat (string) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(parseFloat.name, "parseFloat"); + +verifyNotEnumerable(parseFloat, "name"); +verifyNotWritable(parseFloat, "name"); +verifyConfigurable(parseFloat, "name"); diff --git a/test/built-ins/parseInt/name.js b/test/built-ins/parseInt/name.js new file mode 100755 index 0000000000..795302b3bf --- /dev/null +++ b/test/built-ins/parseInt/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 18.2.5 +description: > + parseInt.name is "parseInt". +info: > + parseInt (string , radix) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(parseInt.name, "parseInt"); + +verifyNotEnumerable(parseInt, "name"); +verifyNotWritable(parseInt, "name"); +verifyConfigurable(parseInt, "name"); From 42edfd6e894809b3945ac730affff3569a303ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 15 Jan 2016 18:12:42 +0100 Subject: [PATCH 4/6] Add missing tests for "length" and "name" properties of %TypedArray% built-in functions --- harness/testTypedArray.js | 5 +++ .../TypedArray/Symbol.species/length.js | 32 +++++++++++++++++++ .../TypedArray/Symbol.species/name.js | 29 +++++++++++++++++ test/built-ins/TypedArray/from/length.js | 29 +++++++++++++++++ test/built-ins/TypedArray/from/name.js | 26 +++++++++++++++ test/built-ins/TypedArray/of/length.js | 29 +++++++++++++++++ test/built-ins/TypedArray/of/name.js | 26 +++++++++++++++ .../TypedArray/prototype/Symbol.iterator.js | 22 +++++++++++++ .../prototype/Symbol.toStringTag/length.js | 31 ++++++++++++++++++ .../prototype/Symbol.toStringTag/name.js | 29 +++++++++++++++++ .../TypedArray/prototype/buffer/length.js | 31 ++++++++++++++++++ .../TypedArray/prototype/buffer/name.js | 28 ++++++++++++++++ .../TypedArray/prototype/byteLength/length.js | 31 ++++++++++++++++++ .../TypedArray/prototype/byteLength/name.js | 28 ++++++++++++++++ .../TypedArray/prototype/byteOffset/length.js | 31 ++++++++++++++++++ .../TypedArray/prototype/byteOffset/name.js | 28 ++++++++++++++++ .../TypedArray/prototype/constructor.js | 20 ++++++++++++ .../TypedArray/prototype/copyWithin/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/copyWithin/name.js | 26 +++++++++++++++ .../TypedArray/prototype/entries/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/entries/name.js | 26 +++++++++++++++ .../TypedArray/prototype/every/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/every/name.js | 26 +++++++++++++++ .../TypedArray/prototype/fill/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/fill/name.js | 26 +++++++++++++++ .../TypedArray/prototype/filter/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/filter/name.js | 26 +++++++++++++++ .../TypedArray/prototype/find/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/find/name.js | 26 +++++++++++++++ .../TypedArray/prototype/findIndex/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/findIndex/name.js | 26 +++++++++++++++ .../TypedArray/prototype/forEach/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/forEach/name.js | 26 +++++++++++++++ .../TypedArray/prototype/indexOf/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/indexOf/name.js | 26 +++++++++++++++ .../TypedArray/prototype/join/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/join/name.js | 26 +++++++++++++++ .../TypedArray/prototype/keys/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/keys/name.js | 26 +++++++++++++++ .../prototype/lastIndexOf/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/lastIndexOf/name.js | 26 +++++++++++++++ .../TypedArray/prototype/length/length.js | 31 ++++++++++++++++++ .../TypedArray/prototype/length/name.js | 28 ++++++++++++++++ .../TypedArray/prototype/map/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/map/name.js | 26 +++++++++++++++ .../TypedArray/prototype/reduce/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/reduce/name.js | 26 +++++++++++++++ .../prototype/reduceRight/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/reduceRight/name.js | 26 +++++++++++++++ .../TypedArray/prototype/reverse/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/reverse/name.js | 26 +++++++++++++++ .../TypedArray/prototype/set/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/set/name.js | 26 +++++++++++++++ .../TypedArray/prototype/slice/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/slice/name.js | 26 +++++++++++++++ .../TypedArray/prototype/some/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/some/name.js | 26 +++++++++++++++ .../TypedArray/prototype/sort/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/sort/name.js | 26 +++++++++++++++ .../TypedArray/prototype/subarray/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/subarray/name.js | 26 +++++++++++++++ .../prototype/toLocaleString/length.js | 29 +++++++++++++++++ .../prototype/toLocaleString/name.js | 26 +++++++++++++++ .../TypedArray/prototype/toString/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/toString/name.js | 26 +++++++++++++++ .../TypedArray/prototype/values/length.js | 29 +++++++++++++++++ .../TypedArray/prototype/values/name.js | 26 +++++++++++++++ 67 files changed, 1834 insertions(+) create mode 100755 test/built-ins/TypedArray/Symbol.species/length.js create mode 100755 test/built-ins/TypedArray/Symbol.species/name.js create mode 100755 test/built-ins/TypedArray/from/length.js create mode 100755 test/built-ins/TypedArray/from/name.js create mode 100755 test/built-ins/TypedArray/of/length.js create mode 100755 test/built-ins/TypedArray/of/name.js create mode 100755 test/built-ins/TypedArray/prototype/Symbol.iterator.js create mode 100755 test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js create mode 100755 test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js create mode 100755 test/built-ins/TypedArray/prototype/buffer/length.js create mode 100755 test/built-ins/TypedArray/prototype/buffer/name.js create mode 100755 test/built-ins/TypedArray/prototype/byteLength/length.js create mode 100755 test/built-ins/TypedArray/prototype/byteLength/name.js create mode 100755 test/built-ins/TypedArray/prototype/byteOffset/length.js create mode 100755 test/built-ins/TypedArray/prototype/byteOffset/name.js create mode 100755 test/built-ins/TypedArray/prototype/constructor.js create mode 100755 test/built-ins/TypedArray/prototype/copyWithin/length.js create mode 100755 test/built-ins/TypedArray/prototype/copyWithin/name.js create mode 100755 test/built-ins/TypedArray/prototype/entries/length.js create mode 100755 test/built-ins/TypedArray/prototype/entries/name.js create mode 100755 test/built-ins/TypedArray/prototype/every/length.js create mode 100755 test/built-ins/TypedArray/prototype/every/name.js create mode 100755 test/built-ins/TypedArray/prototype/fill/length.js create mode 100755 test/built-ins/TypedArray/prototype/fill/name.js create mode 100755 test/built-ins/TypedArray/prototype/filter/length.js create mode 100755 test/built-ins/TypedArray/prototype/filter/name.js create mode 100755 test/built-ins/TypedArray/prototype/find/length.js create mode 100755 test/built-ins/TypedArray/prototype/find/name.js create mode 100755 test/built-ins/TypedArray/prototype/findIndex/length.js create mode 100755 test/built-ins/TypedArray/prototype/findIndex/name.js create mode 100755 test/built-ins/TypedArray/prototype/forEach/length.js create mode 100755 test/built-ins/TypedArray/prototype/forEach/name.js create mode 100755 test/built-ins/TypedArray/prototype/indexOf/length.js create mode 100755 test/built-ins/TypedArray/prototype/indexOf/name.js create mode 100755 test/built-ins/TypedArray/prototype/join/length.js create mode 100755 test/built-ins/TypedArray/prototype/join/name.js create mode 100755 test/built-ins/TypedArray/prototype/keys/length.js create mode 100755 test/built-ins/TypedArray/prototype/keys/name.js create mode 100755 test/built-ins/TypedArray/prototype/lastIndexOf/length.js create mode 100755 test/built-ins/TypedArray/prototype/lastIndexOf/name.js create mode 100755 test/built-ins/TypedArray/prototype/length/length.js create mode 100755 test/built-ins/TypedArray/prototype/length/name.js create mode 100755 test/built-ins/TypedArray/prototype/map/length.js create mode 100755 test/built-ins/TypedArray/prototype/map/name.js create mode 100755 test/built-ins/TypedArray/prototype/reduce/length.js create mode 100755 test/built-ins/TypedArray/prototype/reduce/name.js create mode 100755 test/built-ins/TypedArray/prototype/reduceRight/length.js create mode 100755 test/built-ins/TypedArray/prototype/reduceRight/name.js create mode 100755 test/built-ins/TypedArray/prototype/reverse/length.js create mode 100755 test/built-ins/TypedArray/prototype/reverse/name.js create mode 100755 test/built-ins/TypedArray/prototype/set/length.js create mode 100755 test/built-ins/TypedArray/prototype/set/name.js create mode 100755 test/built-ins/TypedArray/prototype/slice/length.js create mode 100755 test/built-ins/TypedArray/prototype/slice/name.js create mode 100755 test/built-ins/TypedArray/prototype/some/length.js create mode 100755 test/built-ins/TypedArray/prototype/some/name.js create mode 100755 test/built-ins/TypedArray/prototype/sort/length.js create mode 100755 test/built-ins/TypedArray/prototype/sort/name.js create mode 100755 test/built-ins/TypedArray/prototype/subarray/length.js create mode 100755 test/built-ins/TypedArray/prototype/subarray/name.js create mode 100755 test/built-ins/TypedArray/prototype/toLocaleString/length.js create mode 100755 test/built-ins/TypedArray/prototype/toLocaleString/name.js create mode 100755 test/built-ins/TypedArray/prototype/toString/length.js create mode 100755 test/built-ins/TypedArray/prototype/toString/name.js create mode 100755 test/built-ins/TypedArray/prototype/values/length.js create mode 100755 test/built-ins/TypedArray/prototype/values/name.js diff --git a/harness/testTypedArray.js b/harness/testTypedArray.js index 1344b7a8cc..84e07ba36f 100755 --- a/harness/testTypedArray.js +++ b/harness/testTypedArray.js @@ -16,6 +16,11 @@ var typedArrayConstructors = [ Uint8ClampedArray, ]; +/** + * The %TypedArray% intrinsic constructor function. + */ +var TypedArray = Object.getPrototypeOf(Int8Array); + /** * Callback for testing a typed array constructor. * diff --git a/test/built-ins/TypedArray/Symbol.species/length.js b/test/built-ins/TypedArray/Symbol.species/length.js new file mode 100755 index 0000000000..98024f7f89 --- /dev/null +++ b/test/built-ins/TypedArray/Symbol.species/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.2.4 +description: > + get %TypedArray% [ @@species ].length is 0. +info: > + get %TypedArray% [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray, Symbol.species); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/TypedArray/Symbol.species/name.js b/test/built-ins/TypedArray/Symbol.species/name.js new file mode 100755 index 0000000000..00db42389b --- /dev/null +++ b/test/built-ins/TypedArray/Symbol.species/name.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.2.4 +description: > + get %TypedArray% [ @@species ].name is "get [Symbol.species]". +info: > + get %TypedArray% [ @@species ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray, Symbol.species); + +assert.sameValue(desc.get.name, "get [Symbol.species]"); + +verifyNotEnumerable(desc.get, "name"); +verifyNotWritable(desc.get, "name"); +verifyConfigurable(desc.get, "name"); diff --git a/test/built-ins/TypedArray/from/length.js b/test/built-ins/TypedArray/from/length.js new file mode 100755 index 0000000000..f01edd4d04 --- /dev/null +++ b/test/built-ins/TypedArray/from/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.2.1 +description: > + %TypedArray%.from.length is 1. +info: > + %TypedArray%.from ( source [ , mapfn [ , thisArg ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.from.length, 1); + +verifyNotEnumerable(TypedArray.from, "length"); +verifyNotWritable(TypedArray.from, "length"); +verifyConfigurable(TypedArray.from, "length"); diff --git a/test/built-ins/TypedArray/from/name.js b/test/built-ins/TypedArray/from/name.js new file mode 100755 index 0000000000..8074737405 --- /dev/null +++ b/test/built-ins/TypedArray/from/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.2.1 +description: > + %TypedArray%.from.name is "from". +info: > + %TypedArray%.from ( source [ , mapfn [ , thisArg ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.from.name, "from"); + +verifyNotEnumerable(TypedArray.from, "name"); +verifyNotWritable(TypedArray.from, "name"); +verifyConfigurable(TypedArray.from, "name"); diff --git a/test/built-ins/TypedArray/of/length.js b/test/built-ins/TypedArray/of/length.js new file mode 100755 index 0000000000..22142c18df --- /dev/null +++ b/test/built-ins/TypedArray/of/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.2.2 +description: > + %TypedArray%.of.length is 0. +info: > + %TypedArray%.of ( ...items ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.of.length, 0); + +verifyNotEnumerable(TypedArray.of, "length"); +verifyNotWritable(TypedArray.of, "length"); +verifyConfigurable(TypedArray.of, "length"); diff --git a/test/built-ins/TypedArray/of/name.js b/test/built-ins/TypedArray/of/name.js new file mode 100755 index 0000000000..4107e5a68e --- /dev/null +++ b/test/built-ins/TypedArray/of/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.2.2 +description: > + %TypedArray%.of.name is "of". +info: > + %TypedArray%.of ( ...items ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.of.name, "of"); + +verifyNotEnumerable(TypedArray.of, "name"); +verifyNotWritable(TypedArray.of, "name"); +verifyConfigurable(TypedArray.of, "name"); diff --git a/test/built-ins/TypedArray/prototype/Symbol.iterator.js b/test/built-ins/TypedArray/prototype/Symbol.iterator.js new file mode 100755 index 0000000000..6cd6ffd4a2 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/Symbol.iterator.js @@ -0,0 +1,22 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.30 +description: > + Initial state of the Symbol.iterator property +info: > + The initial value of the @@iterator property is the same function object + as the initial value of the %TypedArray%.prototype.values property. + + Per ES6 section 17, the method should exist on the %TypedArray% prototype, and it + should be writable and configurable, but not enumerable. +includes: [propertyHelper.js, testTypedArray.js] +features: [Symbol.iterator] +---*/ + +assert.sameValue(TypedArray.prototype[Symbol.iterator], TypedArray.prototype.values); + +verifyNotEnumerable(TypedArray.prototype, Symbol.iterator); +verifyWritable(TypedArray.prototype, Symbol.iterator); +verifyConfigurable(TypedArray.prototype, Symbol.iterator); diff --git a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js new file mode 100755 index 0000000000..aef705bb92 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.31 +description: > + get %TypedArray%.prototype [ @@toStringTag ].length is 0. +info: > + get %TypedArray%.prototype [ @@toStringTag ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js new file mode 100755 index 0000000000..256de62e4b --- /dev/null +++ b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.31 +description: > + get %TypedArray%.prototype [ @@toStringTag ].name is "get [Symbol.toStringTag]". +info: > + get %TypedArray%.prototype [ @@toStringTag ] + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +features: [Symbol.toStringTag] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag); + +assert.sameValue(desc.get.name, "get [Symbol.toStringTag]"); + +verifyNotEnumerable(desc.get, "name"); +verifyNotWritable(desc.get, "name"); +verifyConfigurable(desc.get, "name"); diff --git a/test/built-ins/TypedArray/prototype/buffer/length.js b/test/built-ins/TypedArray/prototype/buffer/length.js new file mode 100755 index 0000000000..edc885341c --- /dev/null +++ b/test/built-ins/TypedArray/prototype/buffer/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.1 +description: > + get %TypedArray%.prototype.buffer.length is 0. +info: > + get %TypedArray%.prototype.buffer + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "buffer"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/TypedArray/prototype/buffer/name.js b/test/built-ins/TypedArray/prototype/buffer/name.js new file mode 100755 index 0000000000..9f68d17beb --- /dev/null +++ b/test/built-ins/TypedArray/prototype/buffer/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.1 +description: > + get %TypedArray%.prototype.buffer.name is "get buffer". +info: > + get %TypedArray%.prototype.buffer + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "buffer"); + +assert.sameValue(desc.get.name, "get buffer"); + +verifyNotEnumerable(desc.get, "name"); +verifyNotWritable(desc.get, "name"); +verifyConfigurable(desc.get, "name"); diff --git a/test/built-ins/TypedArray/prototype/byteLength/length.js b/test/built-ins/TypedArray/prototype/byteLength/length.js new file mode 100755 index 0000000000..79fcb05baf --- /dev/null +++ b/test/built-ins/TypedArray/prototype/byteLength/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.2 +description: > + get %TypedArray%.prototype.byteLength.length is 0. +info: > + get %TypedArray%.prototype.byteLength + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteLength"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/TypedArray/prototype/byteLength/name.js b/test/built-ins/TypedArray/prototype/byteLength/name.js new file mode 100755 index 0000000000..afb15e6164 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/byteLength/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.2 +description: > + get %TypedArray%.prototype.byteLength.name is "get byteLength". +info: > + get %TypedArray%.prototype.byteLength + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteLength"); + +assert.sameValue(desc.get.name, "get byteLength"); + +verifyNotEnumerable(desc.get, "name"); +verifyNotWritable(desc.get, "name"); +verifyConfigurable(desc.get, "name"); diff --git a/test/built-ins/TypedArray/prototype/byteOffset/length.js b/test/built-ins/TypedArray/prototype/byteOffset/length.js new file mode 100755 index 0000000000..17755955b8 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/byteOffset/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.3 +description: > + get %TypedArray%.prototype.byteOffset.length is 0. +info: > + get %TypedArray%.prototype.byteOffset + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/TypedArray/prototype/byteOffset/name.js b/test/built-ins/TypedArray/prototype/byteOffset/name.js new file mode 100755 index 0000000000..5fd4cba874 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/byteOffset/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.3 +description: > + get %TypedArray%.prototype.byteOffset.name is "get byteOffset". +info: > + get %TypedArray%.prototype.byteOffset + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset"); + +assert.sameValue(desc.get.name, "get byteOffset"); + +verifyNotEnumerable(desc.get, "name"); +verifyNotWritable(desc.get, "name"); +verifyConfigurable(desc.get, "name"); diff --git a/test/built-ins/TypedArray/prototype/constructor.js b/test/built-ins/TypedArray/prototype/constructor.js new file mode 100755 index 0000000000..b0c13ebae3 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/constructor.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.4 +description: > + Initial state of the constructor property +info: > + The initial value of %TypedArray%.prototype.constructor is the %TypedArray% intrinsic object. + + Per ES6 section 17, the method should exist on the %TypedArray% prototype, and it + should be writable and configurable, but not enumerable. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.constructor, TypedArray); + +verifyNotEnumerable(TypedArray.prototype, "constructor"); +verifyWritable(TypedArray.prototype, "constructor"); +verifyConfigurable(TypedArray.prototype, "constructor"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/length.js b/test/built-ins/TypedArray/prototype/copyWithin/length.js new file mode 100755 index 0000000000..d744995555 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/copyWithin/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.5 +description: > + %TypedArray%.prototype.copyWithin.length is 2. +info: > + %TypedArray%.prototype.copyWithin (target, start [, end ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.copyWithin.length, 2); + +verifyNotEnumerable(TypedArray.prototype.copyWithin, "length"); +verifyNotWritable(TypedArray.prototype.copyWithin, "length"); +verifyConfigurable(TypedArray.prototype.copyWithin, "length"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/name.js b/test/built-ins/TypedArray/prototype/copyWithin/name.js new file mode 100755 index 0000000000..98a3eadaf3 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/copyWithin/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.5 +description: > + %TypedArray%.prototype.copyWithin.name is "copyWithin". +info: > + %TypedArray%.prototype.copyWithin (target, start [, end ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.copyWithin.name, "copyWithin"); + +verifyNotEnumerable(TypedArray.prototype.copyWithin, "name"); +verifyNotWritable(TypedArray.prototype.copyWithin, "name"); +verifyConfigurable(TypedArray.prototype.copyWithin, "name"); diff --git a/test/built-ins/TypedArray/prototype/entries/length.js b/test/built-ins/TypedArray/prototype/entries/length.js new file mode 100755 index 0000000000..282a8d170f --- /dev/null +++ b/test/built-ins/TypedArray/prototype/entries/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.6 +description: > + %TypedArray%.prototype.entries.length is 0. +info: > + %TypedArray%.prototype.entries ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.entries.length, 0); + +verifyNotEnumerable(TypedArray.prototype.entries, "length"); +verifyNotWritable(TypedArray.prototype.entries, "length"); +verifyConfigurable(TypedArray.prototype.entries, "length"); diff --git a/test/built-ins/TypedArray/prototype/entries/name.js b/test/built-ins/TypedArray/prototype/entries/name.js new file mode 100755 index 0000000000..2d9ee5fe22 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/entries/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.6 +description: > + %TypedArray%.prototype.entries.name is "entries". +info: > + %TypedArray%.prototype.entries ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.entries.name, "entries"); + +verifyNotEnumerable(TypedArray.prototype.entries, "name"); +verifyNotWritable(TypedArray.prototype.entries, "name"); +verifyConfigurable(TypedArray.prototype.entries, "name"); diff --git a/test/built-ins/TypedArray/prototype/every/length.js b/test/built-ins/TypedArray/prototype/every/length.js new file mode 100755 index 0000000000..7f468c3114 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/every/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.7 +description: > + %TypedArray%.prototype.every.length is 1. +info: > + %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.every.length, 1); + +verifyNotEnumerable(TypedArray.prototype.every, "length"); +verifyNotWritable(TypedArray.prototype.every, "length"); +verifyConfigurable(TypedArray.prototype.every, "length"); diff --git a/test/built-ins/TypedArray/prototype/every/name.js b/test/built-ins/TypedArray/prototype/every/name.js new file mode 100755 index 0000000000..8821bda57b --- /dev/null +++ b/test/built-ins/TypedArray/prototype/every/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.7 +description: > + %TypedArray%.prototype.every.name is "every". +info: > + %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.every.name, "every"); + +verifyNotEnumerable(TypedArray.prototype.every, "name"); +verifyNotWritable(TypedArray.prototype.every, "name"); +verifyConfigurable(TypedArray.prototype.every, "name"); diff --git a/test/built-ins/TypedArray/prototype/fill/length.js b/test/built-ins/TypedArray/prototype/fill/length.js new file mode 100755 index 0000000000..d982a175ee --- /dev/null +++ b/test/built-ins/TypedArray/prototype/fill/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.8 +description: > + %TypedArray%.prototype.fill.length is 1. +info: > + %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.fill.length, 1); + +verifyNotEnumerable(TypedArray.prototype.fill, "length"); +verifyNotWritable(TypedArray.prototype.fill, "length"); +verifyConfigurable(TypedArray.prototype.fill, "length"); diff --git a/test/built-ins/TypedArray/prototype/fill/name.js b/test/built-ins/TypedArray/prototype/fill/name.js new file mode 100755 index 0000000000..cbfebbe1ca --- /dev/null +++ b/test/built-ins/TypedArray/prototype/fill/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.8 +description: > + %TypedArray%.prototype.fill.name is "fill". +info: > + %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.fill.name, "fill"); + +verifyNotEnumerable(TypedArray.prototype.fill, "name"); +verifyNotWritable(TypedArray.prototype.fill, "name"); +verifyConfigurable(TypedArray.prototype.fill, "name"); diff --git a/test/built-ins/TypedArray/prototype/filter/length.js b/test/built-ins/TypedArray/prototype/filter/length.js new file mode 100755 index 0000000000..971c89a0be --- /dev/null +++ b/test/built-ins/TypedArray/prototype/filter/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.9 +description: > + %TypedArray%.prototype.filter.length is 1. +info: > + %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.filter.length, 1); + +verifyNotEnumerable(TypedArray.prototype.filter, "length"); +verifyNotWritable(TypedArray.prototype.filter, "length"); +verifyConfigurable(TypedArray.prototype.filter, "length"); diff --git a/test/built-ins/TypedArray/prototype/filter/name.js b/test/built-ins/TypedArray/prototype/filter/name.js new file mode 100755 index 0000000000..3a9d0b0c6d --- /dev/null +++ b/test/built-ins/TypedArray/prototype/filter/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.9 +description: > + %TypedArray%.prototype.filter.name is "filter". +info: > + %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.filter.name, "filter"); + +verifyNotEnumerable(TypedArray.prototype.filter, "name"); +verifyNotWritable(TypedArray.prototype.filter, "name"); +verifyConfigurable(TypedArray.prototype.filter, "name"); diff --git a/test/built-ins/TypedArray/prototype/find/length.js b/test/built-ins/TypedArray/prototype/find/length.js new file mode 100755 index 0000000000..2f60b70e75 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/find/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.10 +description: > + %TypedArray%.prototype.find.length is 1. +info: > + %TypedArray%.prototype.find (predicate [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.find.length, 1); + +verifyNotEnumerable(TypedArray.prototype.find, "length"); +verifyNotWritable(TypedArray.prototype.find, "length"); +verifyConfigurable(TypedArray.prototype.find, "length"); diff --git a/test/built-ins/TypedArray/prototype/find/name.js b/test/built-ins/TypedArray/prototype/find/name.js new file mode 100755 index 0000000000..dbebf61b01 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/find/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.10 +description: > + %TypedArray%.prototype.find.name is "find". +info: > + %TypedArray%.prototype.find (predicate [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.find.name, "find"); + +verifyNotEnumerable(TypedArray.prototype.find, "name"); +verifyNotWritable(TypedArray.prototype.find, "name"); +verifyConfigurable(TypedArray.prototype.find, "name"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/length.js b/test/built-ins/TypedArray/prototype/findIndex/length.js new file mode 100755 index 0000000000..c9845bea66 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/findIndex/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.11 +description: > + %TypedArray%.prototype.findIndex.length is 1. +info: > + %TypedArray%.prototype.findIndex (predicate [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.findIndex.length, 1); + +verifyNotEnumerable(TypedArray.prototype.findIndex, "length"); +verifyNotWritable(TypedArray.prototype.findIndex, "length"); +verifyConfigurable(TypedArray.prototype.findIndex, "length"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/name.js b/test/built-ins/TypedArray/prototype/findIndex/name.js new file mode 100755 index 0000000000..1de6e6dda3 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/findIndex/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.11 +description: > + %TypedArray%.prototype.findIndex.name is "findIndex". +info: > + %TypedArray%.prototype.findIndex (predicate [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.findIndex.name, "findIndex"); + +verifyNotEnumerable(TypedArray.prototype.findIndex, "name"); +verifyNotWritable(TypedArray.prototype.findIndex, "name"); +verifyConfigurable(TypedArray.prototype.findIndex, "name"); diff --git a/test/built-ins/TypedArray/prototype/forEach/length.js b/test/built-ins/TypedArray/prototype/forEach/length.js new file mode 100755 index 0000000000..b3f0ce22aa --- /dev/null +++ b/test/built-ins/TypedArray/prototype/forEach/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.12 +description: > + %TypedArray%.prototype.forEach.length is 1. +info: > + %TypedArray%.prototype.forEach (callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.forEach.length, 1); + +verifyNotEnumerable(TypedArray.prototype.forEach, "length"); +verifyNotWritable(TypedArray.prototype.forEach, "length"); +verifyConfigurable(TypedArray.prototype.forEach, "length"); diff --git a/test/built-ins/TypedArray/prototype/forEach/name.js b/test/built-ins/TypedArray/prototype/forEach/name.js new file mode 100755 index 0000000000..6227972064 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/forEach/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.12 +description: > + %TypedArray%.prototype.forEach.name is "forEach". +info: > + %TypedArray%.prototype.forEach (callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.forEach.name, "forEach"); + +verifyNotEnumerable(TypedArray.prototype.forEach, "name"); +verifyNotWritable(TypedArray.prototype.forEach, "name"); +verifyConfigurable(TypedArray.prototype.forEach, "name"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/length.js b/test/built-ins/TypedArray/prototype/indexOf/length.js new file mode 100755 index 0000000000..18c007d251 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/indexOf/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.13 +description: > + %TypedArray%.prototype.indexOf.length is 1. +info: > + %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.indexOf.length, 1); + +verifyNotEnumerable(TypedArray.prototype.indexOf, "length"); +verifyNotWritable(TypedArray.prototype.indexOf, "length"); +verifyConfigurable(TypedArray.prototype.indexOf, "length"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/name.js b/test/built-ins/TypedArray/prototype/indexOf/name.js new file mode 100755 index 0000000000..0704aa233d --- /dev/null +++ b/test/built-ins/TypedArray/prototype/indexOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.13 +description: > + %TypedArray%.prototype.indexOf.name is "indexOf". +info: > + %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.indexOf.name, "indexOf"); + +verifyNotEnumerable(TypedArray.prototype.indexOf, "name"); +verifyNotWritable(TypedArray.prototype.indexOf, "name"); +verifyConfigurable(TypedArray.prototype.indexOf, "name"); diff --git a/test/built-ins/TypedArray/prototype/join/length.js b/test/built-ins/TypedArray/prototype/join/length.js new file mode 100755 index 0000000000..a6100f6c2a --- /dev/null +++ b/test/built-ins/TypedArray/prototype/join/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.14 +description: > + %TypedArray%.prototype.join.length is 1. +info: > + %TypedArray%.prototype.join ( separator ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.join.length, 1); + +verifyNotEnumerable(TypedArray.prototype.join, "length"); +verifyNotWritable(TypedArray.prototype.join, "length"); +verifyConfigurable(TypedArray.prototype.join, "length"); diff --git a/test/built-ins/TypedArray/prototype/join/name.js b/test/built-ins/TypedArray/prototype/join/name.js new file mode 100755 index 0000000000..8b947af6e7 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/join/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.14 +description: > + %TypedArray%.prototype.join.name is "join". +info: > + %TypedArray%.prototype.join ( separator ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.join.name, "join"); + +verifyNotEnumerable(TypedArray.prototype.join, "name"); +verifyNotWritable(TypedArray.prototype.join, "name"); +verifyConfigurable(TypedArray.prototype.join, "name"); diff --git a/test/built-ins/TypedArray/prototype/keys/length.js b/test/built-ins/TypedArray/prototype/keys/length.js new file mode 100755 index 0000000000..9ccf6a9cec --- /dev/null +++ b/test/built-ins/TypedArray/prototype/keys/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.15 +description: > + %TypedArray%.prototype.keys.length is 0. +info: > + %TypedArray%.prototype.keys ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.keys.length, 0); + +verifyNotEnumerable(TypedArray.prototype.keys, "length"); +verifyNotWritable(TypedArray.prototype.keys, "length"); +verifyConfigurable(TypedArray.prototype.keys, "length"); diff --git a/test/built-ins/TypedArray/prototype/keys/name.js b/test/built-ins/TypedArray/prototype/keys/name.js new file mode 100755 index 0000000000..0bdcd0ca50 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/keys/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.15 +description: > + %TypedArray%.prototype.keys.name is "keys". +info: > + %TypedArray%.prototype.keys ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.keys.name, "keys"); + +verifyNotEnumerable(TypedArray.prototype.keys, "name"); +verifyNotWritable(TypedArray.prototype.keys, "name"); +verifyConfigurable(TypedArray.prototype.keys, "name"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/length.js b/test/built-ins/TypedArray/prototype/lastIndexOf/length.js new file mode 100755 index 0000000000..4917754ba9 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.16 +description: > + %TypedArray%.prototype.lastIndexOf.length is 1. +info: > + %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.lastIndexOf.length, 1); + +verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "length"); +verifyNotWritable(TypedArray.prototype.lastIndexOf, "length"); +verifyConfigurable(TypedArray.prototype.lastIndexOf, "length"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/name.js b/test/built-ins/TypedArray/prototype/lastIndexOf/name.js new file mode 100755 index 0000000000..29ad823cea --- /dev/null +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.16 +description: > + %TypedArray%.prototype.lastIndexOf.name is "lastIndexOf". +info: > + %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.lastIndexOf.name, "lastIndexOf"); + +verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "name"); +verifyNotWritable(TypedArray.prototype.lastIndexOf, "name"); +verifyConfigurable(TypedArray.prototype.lastIndexOf, "name"); diff --git a/test/built-ins/TypedArray/prototype/length/length.js b/test/built-ins/TypedArray/prototype/length/length.js new file mode 100755 index 0000000000..debf94475e --- /dev/null +++ b/test/built-ins/TypedArray/prototype/length/length.js @@ -0,0 +1,31 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.17 +description: > + get %TypedArray%.prototype.length.length is 0. +info: > + get %TypedArray%.prototype.length + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "length"); + +assert.sameValue(desc.get.length, 0); + +verifyNotEnumerable(desc.get, "length"); +verifyNotWritable(desc.get, "length"); +verifyConfigurable(desc.get, "length"); diff --git a/test/built-ins/TypedArray/prototype/length/name.js b/test/built-ins/TypedArray/prototype/length/name.js new file mode 100755 index 0000000000..7fb7ebeaa1 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/length/name.js @@ -0,0 +1,28 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.17 +description: > + get %TypedArray%.prototype.length.name is "get length". +info: > + get %TypedArray%.prototype.length + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "length"); + +assert.sameValue(desc.get.name, "get length"); + +verifyNotEnumerable(desc.get, "name"); +verifyNotWritable(desc.get, "name"); +verifyConfigurable(desc.get, "name"); diff --git a/test/built-ins/TypedArray/prototype/map/length.js b/test/built-ins/TypedArray/prototype/map/length.js new file mode 100755 index 0000000000..ea93ba574c --- /dev/null +++ b/test/built-ins/TypedArray/prototype/map/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.18 +description: > + %TypedArray%.prototype.map.length is 1. +info: > + %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.map.length, 1); + +verifyNotEnumerable(TypedArray.prototype.map, "length"); +verifyNotWritable(TypedArray.prototype.map, "length"); +verifyConfigurable(TypedArray.prototype.map, "length"); diff --git a/test/built-ins/TypedArray/prototype/map/name.js b/test/built-ins/TypedArray/prototype/map/name.js new file mode 100755 index 0000000000..b20898dde5 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/map/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.18 +description: > + %TypedArray%.prototype.map.name is "map". +info: > + %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.map.name, "map"); + +verifyNotEnumerable(TypedArray.prototype.map, "name"); +verifyNotWritable(TypedArray.prototype.map, "name"); +verifyConfigurable(TypedArray.prototype.map, "name"); diff --git a/test/built-ins/TypedArray/prototype/reduce/length.js b/test/built-ins/TypedArray/prototype/reduce/length.js new file mode 100755 index 0000000000..fbb5f89d3d --- /dev/null +++ b/test/built-ins/TypedArray/prototype/reduce/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.19 +description: > + %TypedArray%.prototype.reduce.length is 1. +info: > + %TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.reduce.length, 1); + +verifyNotEnumerable(TypedArray.prototype.reduce, "length"); +verifyNotWritable(TypedArray.prototype.reduce, "length"); +verifyConfigurable(TypedArray.prototype.reduce, "length"); diff --git a/test/built-ins/TypedArray/prototype/reduce/name.js b/test/built-ins/TypedArray/prototype/reduce/name.js new file mode 100755 index 0000000000..45ea381d0d --- /dev/null +++ b/test/built-ins/TypedArray/prototype/reduce/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.19 +description: > + %TypedArray%.prototype.reduce.name is "reduce". +info: > + %TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.reduce.name, "reduce"); + +verifyNotEnumerable(TypedArray.prototype.reduce, "name"); +verifyNotWritable(TypedArray.prototype.reduce, "name"); +verifyConfigurable(TypedArray.prototype.reduce, "name"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/length.js b/test/built-ins/TypedArray/prototype/reduceRight/length.js new file mode 100755 index 0000000000..8e4d76fe2b --- /dev/null +++ b/test/built-ins/TypedArray/prototype/reduceRight/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.20 +description: > + %TypedArray%.prototype.reduceRight.length is 1. +info: > + %TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.reduceRight.length, 1); + +verifyNotEnumerable(TypedArray.prototype.reduceRight, "length"); +verifyNotWritable(TypedArray.prototype.reduceRight, "length"); +verifyConfigurable(TypedArray.prototype.reduceRight, "length"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/name.js b/test/built-ins/TypedArray/prototype/reduceRight/name.js new file mode 100755 index 0000000000..2e0d72f12e --- /dev/null +++ b/test/built-ins/TypedArray/prototype/reduceRight/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.20 +description: > + %TypedArray%.prototype.reduceRight.name is "reduceRight". +info: > + %TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.reduceRight.name, "reduceRight"); + +verifyNotEnumerable(TypedArray.prototype.reduceRight, "name"); +verifyNotWritable(TypedArray.prototype.reduceRight, "name"); +verifyConfigurable(TypedArray.prototype.reduceRight, "name"); diff --git a/test/built-ins/TypedArray/prototype/reverse/length.js b/test/built-ins/TypedArray/prototype/reverse/length.js new file mode 100755 index 0000000000..f0b172102f --- /dev/null +++ b/test/built-ins/TypedArray/prototype/reverse/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.21 +description: > + %TypedArray%.prototype.reverse.length is 0. +info: > + %TypedArray%.prototype.reverse ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.reverse.length, 0); + +verifyNotEnumerable(TypedArray.prototype.reverse, "length"); +verifyNotWritable(TypedArray.prototype.reverse, "length"); +verifyConfigurable(TypedArray.prototype.reverse, "length"); diff --git a/test/built-ins/TypedArray/prototype/reverse/name.js b/test/built-ins/TypedArray/prototype/reverse/name.js new file mode 100755 index 0000000000..6ece575d50 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/reverse/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.21 +description: > + %TypedArray%.prototype.reverse.name is "reverse". +info: > + %TypedArray%.prototype.reverse ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.reverse.name, "reverse"); + +verifyNotEnumerable(TypedArray.prototype.reverse, "name"); +verifyNotWritable(TypedArray.prototype.reverse, "name"); +verifyConfigurable(TypedArray.prototype.reverse, "name"); diff --git a/test/built-ins/TypedArray/prototype/set/length.js b/test/built-ins/TypedArray/prototype/set/length.js new file mode 100755 index 0000000000..9ab381fabd --- /dev/null +++ b/test/built-ins/TypedArray/prototype/set/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.22 +description: > + %TypedArray%.prototype.set.length is 1. +info: > + %TypedArray%.prototype.set ( overloaded [ , offset ]) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.set.length, 1); + +verifyNotEnumerable(TypedArray.prototype.set, "length"); +verifyNotWritable(TypedArray.prototype.set, "length"); +verifyConfigurable(TypedArray.prototype.set, "length"); diff --git a/test/built-ins/TypedArray/prototype/set/name.js b/test/built-ins/TypedArray/prototype/set/name.js new file mode 100755 index 0000000000..5ad7933580 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/set/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.22 +description: > + %TypedArray%.prototype.set.name is "set". +info: > + %TypedArray%.prototype.set ( overloaded [ , offset ]) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.set.name, "set"); + +verifyNotEnumerable(TypedArray.prototype.set, "name"); +verifyNotWritable(TypedArray.prototype.set, "name"); +verifyConfigurable(TypedArray.prototype.set, "name"); diff --git a/test/built-ins/TypedArray/prototype/slice/length.js b/test/built-ins/TypedArray/prototype/slice/length.js new file mode 100755 index 0000000000..2cc27d9c77 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/slice/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.23 +description: > + %TypedArray%.prototype.slice.length is 2. +info: > + %TypedArray%.prototype.slice ( start, end ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.slice.length, 2); + +verifyNotEnumerable(TypedArray.prototype.slice, "length"); +verifyNotWritable(TypedArray.prototype.slice, "length"); +verifyConfigurable(TypedArray.prototype.slice, "length"); diff --git a/test/built-ins/TypedArray/prototype/slice/name.js b/test/built-ins/TypedArray/prototype/slice/name.js new file mode 100755 index 0000000000..f1bc5aed11 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/slice/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.23 +description: > + %TypedArray%.prototype.slice.name is "slice". +info: > + %TypedArray%.prototype.slice ( start, end ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.slice.name, "slice"); + +verifyNotEnumerable(TypedArray.prototype.slice, "name"); +verifyNotWritable(TypedArray.prototype.slice, "name"); +verifyConfigurable(TypedArray.prototype.slice, "name"); diff --git a/test/built-ins/TypedArray/prototype/some/length.js b/test/built-ins/TypedArray/prototype/some/length.js new file mode 100755 index 0000000000..2403dc80de --- /dev/null +++ b/test/built-ins/TypedArray/prototype/some/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.24 +description: > + %TypedArray%.prototype.some.length is 1. +info: > + %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.some.length, 1); + +verifyNotEnumerable(TypedArray.prototype.some, "length"); +verifyNotWritable(TypedArray.prototype.some, "length"); +verifyConfigurable(TypedArray.prototype.some, "length"); diff --git a/test/built-ins/TypedArray/prototype/some/name.js b/test/built-ins/TypedArray/prototype/some/name.js new file mode 100755 index 0000000000..13c87080e7 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/some/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.24 +description: > + %TypedArray%.prototype.some.name is "some". +info: > + %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.some.name, "some"); + +verifyNotEnumerable(TypedArray.prototype.some, "name"); +verifyNotWritable(TypedArray.prototype.some, "name"); +verifyConfigurable(TypedArray.prototype.some, "name"); diff --git a/test/built-ins/TypedArray/prototype/sort/length.js b/test/built-ins/TypedArray/prototype/sort/length.js new file mode 100755 index 0000000000..9351ef9b19 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/sort/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.25 +description: > + %TypedArray%.prototype.sort.length is 1. +info: > + %TypedArray%.prototype.sort ( comparefn ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.sort.length, 1); + +verifyNotEnumerable(TypedArray.prototype.sort, "length"); +verifyNotWritable(TypedArray.prototype.sort, "length"); +verifyConfigurable(TypedArray.prototype.sort, "length"); diff --git a/test/built-ins/TypedArray/prototype/sort/name.js b/test/built-ins/TypedArray/prototype/sort/name.js new file mode 100755 index 0000000000..9b7e77fa34 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/sort/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.25 +description: > + %TypedArray%.prototype.sort.name is "sort". +info: > + %TypedArray%.prototype.sort ( comparefn ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.sort.name, "sort"); + +verifyNotEnumerable(TypedArray.prototype.sort, "name"); +verifyNotWritable(TypedArray.prototype.sort, "name"); +verifyConfigurable(TypedArray.prototype.sort, "name"); diff --git a/test/built-ins/TypedArray/prototype/subarray/length.js b/test/built-ins/TypedArray/prototype/subarray/length.js new file mode 100755 index 0000000000..032b9cf7d3 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/subarray/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.26 +description: > + %TypedArray%.prototype.subarray.length is 2. +info: > + %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.subarray.length, 2); + +verifyNotEnumerable(TypedArray.prototype.subarray, "length"); +verifyNotWritable(TypedArray.prototype.subarray, "length"); +verifyConfigurable(TypedArray.prototype.subarray, "length"); diff --git a/test/built-ins/TypedArray/prototype/subarray/name.js b/test/built-ins/TypedArray/prototype/subarray/name.js new file mode 100755 index 0000000000..4b30a1da82 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/subarray/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.26 +description: > + %TypedArray%.prototype.subarray.name is "subarray". +info: > + %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.subarray.name, "subarray"); + +verifyNotEnumerable(TypedArray.prototype.subarray, "name"); +verifyNotWritable(TypedArray.prototype.subarray, "name"); +verifyConfigurable(TypedArray.prototype.subarray, "name"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/length.js b/test/built-ins/TypedArray/prototype/toLocaleString/length.js new file mode 100755 index 0000000000..1a321aa726 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/toLocaleString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.27 +description: > + %TypedArray%.prototype.toLocaleString.length is 0. +info: > + %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.toLocaleString.length, 0); + +verifyNotEnumerable(TypedArray.prototype.toLocaleString, "length"); +verifyNotWritable(TypedArray.prototype.toLocaleString, "length"); +verifyConfigurable(TypedArray.prototype.toLocaleString, "length"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/name.js b/test/built-ins/TypedArray/prototype/toLocaleString/name.js new file mode 100755 index 0000000000..2e14cc2368 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/toLocaleString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.27 +description: > + %TypedArray%.prototype.toLocaleString.name is "toLocaleString". +info: > + %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.toLocaleString.name, "toLocaleString"); + +verifyNotEnumerable(TypedArray.prototype.toLocaleString, "name"); +verifyNotWritable(TypedArray.prototype.toLocaleString, "name"); +verifyConfigurable(TypedArray.prototype.toLocaleString, "name"); diff --git a/test/built-ins/TypedArray/prototype/toString/length.js b/test/built-ins/TypedArray/prototype/toString/length.js new file mode 100755 index 0000000000..de6bea035d --- /dev/null +++ b/test/built-ins/TypedArray/prototype/toString/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.28 +description: > + %TypedArray%.prototype.toString.length is 0. +info: > + %TypedArray%.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.toString.length, 0); + +verifyNotEnumerable(TypedArray.prototype.toString, "length"); +verifyNotWritable(TypedArray.prototype.toString, "length"); +verifyConfigurable(TypedArray.prototype.toString, "length"); diff --git a/test/built-ins/TypedArray/prototype/toString/name.js b/test/built-ins/TypedArray/prototype/toString/name.js new file mode 100755 index 0000000000..d5e98315e9 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/toString/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.28 +description: > + %TypedArray%.prototype.toString.name is "toString". +info: > + %TypedArray%.prototype.toString ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.toString.name, "toString"); + +verifyNotEnumerable(TypedArray.prototype.toString, "name"); +verifyNotWritable(TypedArray.prototype.toString, "name"); +verifyConfigurable(TypedArray.prototype.toString, "name"); diff --git a/test/built-ins/TypedArray/prototype/values/length.js b/test/built-ins/TypedArray/prototype/values/length.js new file mode 100755 index 0000000000..8a31ffc631 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/values/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.29 +description: > + %TypedArray%.prototype.values.length is 0. +info: > + %TypedArray%.prototype.values ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.values.length, 0); + +verifyNotEnumerable(TypedArray.prototype.values, "length"); +verifyNotWritable(TypedArray.prototype.values, "length"); +verifyConfigurable(TypedArray.prototype.values, "length"); diff --git a/test/built-ins/TypedArray/prototype/values/name.js b/test/built-ins/TypedArray/prototype/values/name.js new file mode 100755 index 0000000000..5f6f47a6c5 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/values/name.js @@ -0,0 +1,26 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.3.29 +description: > + %TypedArray%.prototype.values.name is "values". +info: > + %TypedArray%.prototype.values ( ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +assert.sameValue(TypedArray.prototype.values.name, "values"); + +verifyNotEnumerable(TypedArray.prototype.values, "name"); +verifyNotWritable(TypedArray.prototype.values, "name"); +verifyConfigurable(TypedArray.prototype.values, "name"); From 1bac79fbf3d7a101c02b5c163bb89cc914e4f9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 15 Jan 2016 18:13:08 +0100 Subject: [PATCH 5/6] Add basic surface tests for TypedArrays --- .../Float32Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Float32Array/constructor.js | 10 ++++++ .../TypedArrays/Float32Array/length.js | 29 +++++++++++++++++ .../TypedArrays/Float32Array/name.js | 27 ++++++++++++++++ .../TypedArrays/Float32Array/proto.js | 13 ++++++++ .../TypedArrays/Float32Array/prototype.js | 19 +++++++++++ .../prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Float32Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../Float32Array/prototype/proto.js | 14 ++++++++ .../Float32Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Float64Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Float64Array/constructor.js | 10 ++++++ .../TypedArrays/Float64Array/length.js | 29 +++++++++++++++++ .../TypedArrays/Float64Array/name.js | 27 ++++++++++++++++ .../TypedArrays/Float64Array/proto.js | 13 ++++++++ .../TypedArrays/Float64Array/prototype.js | 19 +++++++++++ .../prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Float64Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../Float64Array/prototype/proto.js | 14 ++++++++ .../Float64Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Int16Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Int16Array/constructor.js | 10 ++++++ .../TypedArrays/Int16Array/length.js | 29 +++++++++++++++++ test/built-ins/TypedArrays/Int16Array/name.js | 27 ++++++++++++++++ .../built-ins/TypedArrays/Int16Array/proto.js | 13 ++++++++ .../TypedArrays/Int16Array/prototype.js | 19 +++++++++++ .../Int16Array/prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Int16Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../TypedArrays/Int16Array/prototype/proto.js | 14 ++++++++ .../Int16Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Int32Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Int32Array/constructor.js | 10 ++++++ .../TypedArrays/Int32Array/length.js | 29 +++++++++++++++++ test/built-ins/TypedArrays/Int32Array/name.js | 27 ++++++++++++++++ .../built-ins/TypedArrays/Int32Array/proto.js | 13 ++++++++ .../TypedArrays/Int32Array/prototype.js | 19 +++++++++++ .../Int32Array/prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Int32Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../TypedArrays/Int32Array/prototype/proto.js | 14 ++++++++ .../Int32Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Int8Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Int8Array/constructor.js | 10 ++++++ .../built-ins/TypedArrays/Int8Array/length.js | 29 +++++++++++++++++ test/built-ins/TypedArrays/Int8Array/name.js | 27 ++++++++++++++++ test/built-ins/TypedArrays/Int8Array/proto.js | 13 ++++++++ .../TypedArrays/Int8Array/prototype.js | 19 +++++++++++ .../Int8Array/prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Int8Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../TypedArrays/Int8Array/prototype/proto.js | 14 ++++++++ .../Int8Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Uint16Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Uint16Array/constructor.js | 10 ++++++ .../TypedArrays/Uint16Array/length.js | 29 +++++++++++++++++ .../built-ins/TypedArrays/Uint16Array/name.js | 27 ++++++++++++++++ .../TypedArrays/Uint16Array/proto.js | 13 ++++++++ .../TypedArrays/Uint16Array/prototype.js | 19 +++++++++++ .../prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Uint16Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../Uint16Array/prototype/proto.js | 14 ++++++++ .../Uint16Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Uint32Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Uint32Array/constructor.js | 10 ++++++ .../TypedArrays/Uint32Array/length.js | 29 +++++++++++++++++ .../built-ins/TypedArrays/Uint32Array/name.js | 27 ++++++++++++++++ .../TypedArrays/Uint32Array/proto.js | 13 ++++++++ .../TypedArrays/Uint32Array/prototype.js | 19 +++++++++++ .../prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Uint32Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../Uint32Array/prototype/proto.js | 14 ++++++++ .../Uint32Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Uint8Array/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../TypedArrays/Uint8Array/constructor.js | 10 ++++++ .../TypedArrays/Uint8Array/length.js | 29 +++++++++++++++++ test/built-ins/TypedArrays/Uint8Array/name.js | 27 ++++++++++++++++ .../built-ins/TypedArrays/Uint8Array/proto.js | 13 ++++++++ .../TypedArrays/Uint8Array/prototype.js | 19 +++++++++++ .../Uint8Array/prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Uint8Array/prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../TypedArrays/Uint8Array/prototype/proto.js | 14 ++++++++ .../Uint8Array/undefined-newtarget.js | 32 +++++++++++++++++++ .../Uint8ClampedArray/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../Uint8ClampedArray/constructor.js | 10 ++++++ .../TypedArrays/Uint8ClampedArray/length.js | 29 +++++++++++++++++ .../TypedArrays/Uint8ClampedArray/name.js | 27 ++++++++++++++++ .../TypedArrays/Uint8ClampedArray/proto.js | 13 ++++++++ .../Uint8ClampedArray/prototype.js | 19 +++++++++++ .../prototype/BYTES_PER_ELEMENT.js | 20 ++++++++++++ .../prototype/constructor.js | 23 +++++++++++++ .../prototype/not-typedarray-object.js | 16 ++++++++++ .../Uint8ClampedArray/prototype/proto.js | 14 ++++++++ .../Uint8ClampedArray/undefined-newtarget.js | 32 +++++++++++++++++++ 99 files changed, 2007 insertions(+) create mode 100755 test/built-ins/TypedArrays/Float32Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Float32Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Float32Array/length.js create mode 100755 test/built-ins/TypedArrays/Float32Array/name.js create mode 100755 test/built-ins/TypedArrays/Float32Array/proto.js create mode 100755 test/built-ins/TypedArrays/Float32Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Float32Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Float32Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Float32Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Float32Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Float32Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Float64Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Float64Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Float64Array/length.js create mode 100755 test/built-ins/TypedArrays/Float64Array/name.js create mode 100755 test/built-ins/TypedArrays/Float64Array/proto.js create mode 100755 test/built-ins/TypedArrays/Float64Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Float64Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Float64Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Float64Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Float64Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Float64Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Int16Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Int16Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Int16Array/length.js create mode 100755 test/built-ins/TypedArrays/Int16Array/name.js create mode 100755 test/built-ins/TypedArrays/Int16Array/proto.js create mode 100755 test/built-ins/TypedArrays/Int16Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Int16Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Int16Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Int16Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Int16Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Int16Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Int32Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Int32Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Int32Array/length.js create mode 100755 test/built-ins/TypedArrays/Int32Array/name.js create mode 100755 test/built-ins/TypedArrays/Int32Array/proto.js create mode 100755 test/built-ins/TypedArrays/Int32Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Int32Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Int32Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Int32Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Int32Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Int32Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Int8Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Int8Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Int8Array/length.js create mode 100755 test/built-ins/TypedArrays/Int8Array/name.js create mode 100755 test/built-ins/TypedArrays/Int8Array/proto.js create mode 100755 test/built-ins/TypedArrays/Int8Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Int8Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Int8Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Int8Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Int8Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Int8Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/length.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/name.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/proto.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Uint16Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/length.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/name.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/proto.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Uint32Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/length.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/name.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/proto.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/prototype.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Uint8Array/undefined-newtarget.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/length.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/name.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/proto.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/prototype.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/prototype/BYTES_PER_ELEMENT.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/prototype/constructor.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/prototype/not-typedarray-object.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/prototype/proto.js create mode 100755 test/built-ins/TypedArrays/Uint8ClampedArray/undefined-newtarget.js diff --git a/test/built-ins/TypedArrays/Float32Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Float32Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..e10e79870f --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Float32Array.BYTES_PER_ELEMENT is 4. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float32Array.BYTES_PER_ELEMENT, 4); + +verifyNotEnumerable(Float32Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Float32Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Float32Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Float32Array/constructor.js b/test/built-ins/TypedArrays/Float32Array/constructor.js new file mode 100755 index 0000000000..8bafaf604a --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Float32Array is a constructor function. +---*/ + +assert.sameValue(typeof Float32Array, 'function', 'typeof Float32Array is "function"'); diff --git a/test/built-ins/TypedArrays/Float32Array/length.js b/test/built-ins/TypedArrays/Float32Array/length.js new file mode 100755 index 0000000000..87e51768c7 --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Float32Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float32Array.length, 3); + +verifyNotEnumerable(Float32Array, "length"); +verifyNotWritable(Float32Array, "length"); +verifyConfigurable(Float32Array, "length"); diff --git a/test/built-ins/TypedArrays/Float32Array/name.js b/test/built-ins/TypedArrays/Float32Array/name.js new file mode 100755 index 0000000000..9cc98e9ce3 --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Float32Array.name is "Float32Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float32Array.name, "Float32Array"); + +verifyNotEnumerable(Float32Array, "name"); +verifyNotWritable(Float32Array, "name"); +verifyConfigurable(Float32Array, "name"); diff --git a/test/built-ins/TypedArrays/Float32Array/proto.js b/test/built-ins/TypedArrays/Float32Array/proto.js new file mode 100755 index 0000000000..c1ec88e210 --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Float32Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Float32Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Float32Array/prototype.js b/test/built-ins/TypedArrays/Float32Array/prototype.js new file mode 100755 index 0000000000..d89d5a0832 --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Float32Array.prototype is the Float32Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float32Array.prototype, Object.getPrototypeOf(new Float32Array(0))); + +verifyNotEnumerable(Float32Array, "prototype"); +verifyNotWritable(Float32Array, "prototype"); +verifyNotConfigurable(Float32Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Float32Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Float32Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..704a81250a --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Float32Array.prototype.BYTES_PER_ELEMENT is 4. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float32Array.prototype.BYTES_PER_ELEMENT, 4); + +verifyNotEnumerable(Float32Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Float32Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Float32Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Float32Array/prototype/constructor.js b/test/built-ins/TypedArrays/Float32Array/prototype/constructor.js new file mode 100755 index 0000000000..20ae26cbac --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Float32Array.prototype.constructor is the Float32Array object. +info: > + The initial value of Float32Array.prototype.constructor is the intrinsic + object %Float32Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float32Array.prototype.constructor, Float32Array); + +verifyNotEnumerable(Float32Array.prototype, "constructor"); +verifyWritable(Float32Array.prototype, "constructor"); +verifyConfigurable(Float32Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Float32Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Float32Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..040cfdfd92 --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Float64Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Float64Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Float32Array/prototype/proto.js b/test/built-ins/TypedArrays/Float32Array/prototype/proto.js new file mode 100755 index 0000000000..be7aa52fc9 --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Float32Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Float32Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Float32Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Float32Array/undefined-newtarget.js new file mode 100755 index 0000000000..35478521be --- /dev/null +++ b/test/built-ins/TypedArrays/Float32Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Float32Array(); +}, "Float32Array()"); + +assert.throws(TypeError, function() { + Float32Array(0); +}, "Float32Array(0)"); + +assert.throws(TypeError, function() { + Float32Array(new Float32Array(1)); +}, "Float32Array(float32Array)"); + +assert.throws(TypeError, function() { + Float32Array([]); +}, "Float32Array(array)"); + +assert.throws(TypeError, function() { + Float32Array(new ArrayBuffer(8)); +}, "Float32Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Float64Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Float64Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..c7f757a45a --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Float64Array.BYTES_PER_ELEMENT is 8. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float64Array.BYTES_PER_ELEMENT, 8); + +verifyNotEnumerable(Float64Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Float64Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Float64Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Float64Array/constructor.js b/test/built-ins/TypedArrays/Float64Array/constructor.js new file mode 100755 index 0000000000..ffe659ff70 --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Float64Array is a constructor function. +---*/ + +assert.sameValue(typeof Float64Array, 'function', 'typeof Float64Array is "function"'); diff --git a/test/built-ins/TypedArrays/Float64Array/length.js b/test/built-ins/TypedArrays/Float64Array/length.js new file mode 100755 index 0000000000..8d4cf37fc2 --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Float64Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float64Array.length, 3); + +verifyNotEnumerable(Float64Array, "length"); +verifyNotWritable(Float64Array, "length"); +verifyConfigurable(Float64Array, "length"); diff --git a/test/built-ins/TypedArrays/Float64Array/name.js b/test/built-ins/TypedArrays/Float64Array/name.js new file mode 100755 index 0000000000..1b26bf941f --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Float64Array.name is "Float64Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float64Array.name, "Float64Array"); + +verifyNotEnumerable(Float64Array, "name"); +verifyNotWritable(Float64Array, "name"); +verifyConfigurable(Float64Array, "name"); diff --git a/test/built-ins/TypedArrays/Float64Array/proto.js b/test/built-ins/TypedArrays/Float64Array/proto.js new file mode 100755 index 0000000000..1593f7b460 --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Float64Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Float64Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Float64Array/prototype.js b/test/built-ins/TypedArrays/Float64Array/prototype.js new file mode 100755 index 0000000000..6a4fc7d46b --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Float64Array.prototype is the Float64Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float64Array.prototype, Object.getPrototypeOf(new Float64Array(0))); + +verifyNotEnumerable(Float64Array, "prototype"); +verifyNotWritable(Float64Array, "prototype"); +verifyNotConfigurable(Float64Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Float64Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Float64Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..00200772b2 --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Float64Array.prototype.BYTES_PER_ELEMENT is 8. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float64Array.prototype.BYTES_PER_ELEMENT, 8); + +verifyNotEnumerable(Float64Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Float64Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Float64Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Float64Array/prototype/constructor.js b/test/built-ins/TypedArrays/Float64Array/prototype/constructor.js new file mode 100755 index 0000000000..1b7f70d84c --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Float64Array.prototype.constructor is the Float64Array object. +info: > + The initial value of Float64Array.prototype.constructor is the intrinsic + object %Float64Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Float64Array.prototype.constructor, Float64Array); + +verifyNotEnumerable(Float64Array.prototype, "constructor"); +verifyWritable(Float64Array.prototype, "constructor"); +verifyConfigurable(Float64Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Float64Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Float64Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..040cfdfd92 --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Float64Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Float64Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Float64Array/prototype/proto.js b/test/built-ins/TypedArrays/Float64Array/prototype/proto.js new file mode 100755 index 0000000000..8723c653e4 --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Float64Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Float64Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Float64Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Float64Array/undefined-newtarget.js new file mode 100755 index 0000000000..32ed0fb33b --- /dev/null +++ b/test/built-ins/TypedArrays/Float64Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Float64Array(); +}, "Float64Array()"); + +assert.throws(TypeError, function() { + Float64Array(0); +}, "Float64Array(0)"); + +assert.throws(TypeError, function() { + Float64Array(new Float64Array(1)); +}, "Float64Array(float64Array)"); + +assert.throws(TypeError, function() { + Float64Array([]); +}, "Float64Array(array)"); + +assert.throws(TypeError, function() { + Float64Array(new ArrayBuffer(8)); +}, "Float64Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Int16Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Int16Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..9968e7e035 --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Int16Array.BYTES_PER_ELEMENT is 2. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int16Array.BYTES_PER_ELEMENT, 2); + +verifyNotEnumerable(Int16Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Int16Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Int16Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Int16Array/constructor.js b/test/built-ins/TypedArrays/Int16Array/constructor.js new file mode 100755 index 0000000000..d87ba38233 --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Int16Array is a constructor function. +---*/ + +assert.sameValue(typeof Int16Array, 'function', 'typeof Int16Array is "function"'); diff --git a/test/built-ins/TypedArrays/Int16Array/length.js b/test/built-ins/TypedArrays/Int16Array/length.js new file mode 100755 index 0000000000..6d0286c869 --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Int16Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int16Array.length, 3); + +verifyNotEnumerable(Int16Array, "length"); +verifyNotWritable(Int16Array, "length"); +verifyConfigurable(Int16Array, "length"); diff --git a/test/built-ins/TypedArrays/Int16Array/name.js b/test/built-ins/TypedArrays/Int16Array/name.js new file mode 100755 index 0000000000..a5ff20f99f --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Int16Array.name is "Int16Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int16Array.name, "Int16Array"); + +verifyNotEnumerable(Int16Array, "name"); +verifyNotWritable(Int16Array, "name"); +verifyConfigurable(Int16Array, "name"); diff --git a/test/built-ins/TypedArrays/Int16Array/proto.js b/test/built-ins/TypedArrays/Int16Array/proto.js new file mode 100755 index 0000000000..d1fa53bbc8 --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Int16Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Int16Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Int16Array/prototype.js b/test/built-ins/TypedArrays/Int16Array/prototype.js new file mode 100755 index 0000000000..0ef409d14e --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Int16Array.prototype is the Int16Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int16Array.prototype, Object.getPrototypeOf(new Int16Array(0))); + +verifyNotEnumerable(Int16Array, "prototype"); +verifyNotWritable(Int16Array, "prototype"); +verifyNotConfigurable(Int16Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Int16Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Int16Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..d16dbb2546 --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Int16Array.prototype.BYTES_PER_ELEMENT is 2. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int16Array.prototype.BYTES_PER_ELEMENT, 2); + +verifyNotEnumerable(Int16Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Int16Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Int16Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Int16Array/prototype/constructor.js b/test/built-ins/TypedArrays/Int16Array/prototype/constructor.js new file mode 100755 index 0000000000..e1a40604c3 --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Int16Array.prototype.constructor is the Int16Array object. +info: > + The initial value of Int16Array.prototype.constructor is the intrinsic + object %Int16Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int16Array.prototype.constructor, Int16Array); + +verifyNotEnumerable(Int16Array.prototype, "constructor"); +verifyWritable(Int16Array.prototype, "constructor"); +verifyConfigurable(Int16Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Int16Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Int16Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..b277f1a3ac --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Int16Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Int16Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Int16Array/prototype/proto.js b/test/built-ins/TypedArrays/Int16Array/prototype/proto.js new file mode 100755 index 0000000000..6062dc8a50 --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Int16Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Int16Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Int16Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Int16Array/undefined-newtarget.js new file mode 100755 index 0000000000..664fc5ba0a --- /dev/null +++ b/test/built-ins/TypedArrays/Int16Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Int16Array(); +}, "Int16Array()"); + +assert.throws(TypeError, function() { + Int16Array(0); +}, "Int16Array(0)"); + +assert.throws(TypeError, function() { + Int16Array(new Int16Array(1)); +}, "Int16Array(int16Array)"); + +assert.throws(TypeError, function() { + Int16Array([]); +}, "Int16Array(array)"); + +assert.throws(TypeError, function() { + Int16Array(new ArrayBuffer(8)); +}, "Int16Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Int32Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Int32Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..b7d62cce6a --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Int32Array.BYTES_PER_ELEMENT is 4. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int32Array.BYTES_PER_ELEMENT, 4); + +verifyNotEnumerable(Int32Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Int32Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Int32Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Int32Array/constructor.js b/test/built-ins/TypedArrays/Int32Array/constructor.js new file mode 100755 index 0000000000..0ecfe5a2c1 --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Int32Array is a constructor function. +---*/ + +assert.sameValue(typeof Int32Array, 'function', 'typeof Int32Array is "function"'); diff --git a/test/built-ins/TypedArrays/Int32Array/length.js b/test/built-ins/TypedArrays/Int32Array/length.js new file mode 100755 index 0000000000..c7aa8177cc --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Int32Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int32Array.length, 3); + +verifyNotEnumerable(Int32Array, "length"); +verifyNotWritable(Int32Array, "length"); +verifyConfigurable(Int32Array, "length"); diff --git a/test/built-ins/TypedArrays/Int32Array/name.js b/test/built-ins/TypedArrays/Int32Array/name.js new file mode 100755 index 0000000000..04ed081564 --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Int32Array.name is "Int32Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int32Array.name, "Int32Array"); + +verifyNotEnumerable(Int32Array, "name"); +verifyNotWritable(Int32Array, "name"); +verifyConfigurable(Int32Array, "name"); diff --git a/test/built-ins/TypedArrays/Int32Array/proto.js b/test/built-ins/TypedArrays/Int32Array/proto.js new file mode 100755 index 0000000000..7c66d3dfcd --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Int32Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Int32Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Int32Array/prototype.js b/test/built-ins/TypedArrays/Int32Array/prototype.js new file mode 100755 index 0000000000..3fffdbf165 --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Int32Array.prototype is the Int32Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int32Array.prototype, Object.getPrototypeOf(new Int32Array(0))); + +verifyNotEnumerable(Int32Array, "prototype"); +verifyNotWritable(Int32Array, "prototype"); +verifyNotConfigurable(Int32Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Int32Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Int32Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..7cf54d8bfb --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Int32Array.prototype.BYTES_PER_ELEMENT is 4. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int32Array.prototype.BYTES_PER_ELEMENT, 4); + +verifyNotEnumerable(Int32Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Int32Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Int32Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Int32Array/prototype/constructor.js b/test/built-ins/TypedArrays/Int32Array/prototype/constructor.js new file mode 100755 index 0000000000..fe8fd8fbf6 --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Int32Array.prototype.constructor is the Int32Array object. +info: > + The initial value of Int32Array.prototype.constructor is the intrinsic + object %Int32Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int32Array.prototype.constructor, Int32Array); + +verifyNotEnumerable(Int32Array.prototype, "constructor"); +verifyWritable(Int32Array.prototype, "constructor"); +verifyConfigurable(Int32Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Int32Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Int32Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..0fd9b89484 --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Int32Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Int32Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Int32Array/prototype/proto.js b/test/built-ins/TypedArrays/Int32Array/prototype/proto.js new file mode 100755 index 0000000000..5a08b72821 --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Int32Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Int32Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Int32Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Int32Array/undefined-newtarget.js new file mode 100755 index 0000000000..6f42e423c4 --- /dev/null +++ b/test/built-ins/TypedArrays/Int32Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Int32Array(); +}, "Int32Array()"); + +assert.throws(TypeError, function() { + Int32Array(0); +}, "Int32Array(0)"); + +assert.throws(TypeError, function() { + Int32Array(new Int32Array(1)); +}, "Int32Array(int32Array)"); + +assert.throws(TypeError, function() { + Int32Array([]); +}, "Int32Array(array)"); + +assert.throws(TypeError, function() { + Int32Array(new ArrayBuffer(8)); +}, "Int32Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Int8Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Int8Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..ead0674eaa --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Int8Array.BYTES_PER_ELEMENT is 1. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int8Array.BYTES_PER_ELEMENT, 1); + +verifyNotEnumerable(Int8Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Int8Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Int8Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Int8Array/constructor.js b/test/built-ins/TypedArrays/Int8Array/constructor.js new file mode 100755 index 0000000000..7dd8e916d3 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Int8Array is a constructor function. +---*/ + +assert.sameValue(typeof Int8Array, 'function', 'typeof Int8Array is "function"'); diff --git a/test/built-ins/TypedArrays/Int8Array/length.js b/test/built-ins/TypedArrays/Int8Array/length.js new file mode 100755 index 0000000000..042071baf7 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Int8Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int8Array.length, 3); + +verifyNotEnumerable(Int8Array, "length"); +verifyNotWritable(Int8Array, "length"); +verifyConfigurable(Int8Array, "length"); diff --git a/test/built-ins/TypedArrays/Int8Array/name.js b/test/built-ins/TypedArrays/Int8Array/name.js new file mode 100755 index 0000000000..f6f06b97c3 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Int8Array.name is "Int8Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int8Array.name, "Int8Array"); + +verifyNotEnumerable(Int8Array, "name"); +verifyNotWritable(Int8Array, "name"); +verifyConfigurable(Int8Array, "name"); diff --git a/test/built-ins/TypedArrays/Int8Array/proto.js b/test/built-ins/TypedArrays/Int8Array/proto.js new file mode 100755 index 0000000000..d9a6b74455 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Int8Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Int8Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Int8Array/prototype.js b/test/built-ins/TypedArrays/Int8Array/prototype.js new file mode 100755 index 0000000000..776d23e5b4 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Int8Array.prototype is the Int8Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int8Array.prototype, Object.getPrototypeOf(new Int8Array(0))); + +verifyNotEnumerable(Int8Array, "prototype"); +verifyNotWritable(Int8Array, "prototype"); +verifyNotConfigurable(Int8Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Int8Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Int8Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..7ea04b4dc7 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Int8Array.prototype.BYTES_PER_ELEMENT is 1. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int8Array.prototype.BYTES_PER_ELEMENT, 1); + +verifyNotEnumerable(Int8Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Int8Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Int8Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Int8Array/prototype/constructor.js b/test/built-ins/TypedArrays/Int8Array/prototype/constructor.js new file mode 100755 index 0000000000..3eff219941 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Int8Array.prototype.constructor is the Int8Array object. +info: > + The initial value of Int8Array.prototype.constructor is the intrinsic + object %Int8Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Int8Array.prototype.constructor, Int8Array); + +verifyNotEnumerable(Int8Array.prototype, "constructor"); +verifyWritable(Int8Array.prototype, "constructor"); +verifyConfigurable(Int8Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Int8Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Int8Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..263b4115b5 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Int8Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Int8Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Int8Array/prototype/proto.js b/test/built-ins/TypedArrays/Int8Array/prototype/proto.js new file mode 100755 index 0000000000..c65de67f18 --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Int8Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Int8Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Int8Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Int8Array/undefined-newtarget.js new file mode 100755 index 0000000000..4a3f8dc17e --- /dev/null +++ b/test/built-ins/TypedArrays/Int8Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Int8Array(); +}, "Int8Array()"); + +assert.throws(TypeError, function() { + Int8Array(0); +}, "Int8Array(0)"); + +assert.throws(TypeError, function() { + Int8Array(new Int8Array(1)); +}, "Int8Array(int8Array)"); + +assert.throws(TypeError, function() { + Int8Array([]); +}, "Int8Array(array)"); + +assert.throws(TypeError, function() { + Int8Array(new ArrayBuffer(8)); +}, "Int8Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Uint16Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint16Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..1a52058925 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Uint16Array.BYTES_PER_ELEMENT is 2. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint16Array.BYTES_PER_ELEMENT, 2); + +verifyNotEnumerable(Uint16Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint16Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint16Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint16Array/constructor.js b/test/built-ins/TypedArrays/Uint16Array/constructor.js new file mode 100755 index 0000000000..79dbf82aef --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Uint16Array is a constructor function. +---*/ + +assert.sameValue(typeof Uint16Array, 'function', 'typeof Uint16Array is "function"'); diff --git a/test/built-ins/TypedArrays/Uint16Array/length.js b/test/built-ins/TypedArrays/Uint16Array/length.js new file mode 100755 index 0000000000..9b54e8b91c --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint16Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint16Array.length, 3); + +verifyNotEnumerable(Uint16Array, "length"); +verifyNotWritable(Uint16Array, "length"); +verifyConfigurable(Uint16Array, "length"); diff --git a/test/built-ins/TypedArrays/Uint16Array/name.js b/test/built-ins/TypedArrays/Uint16Array/name.js new file mode 100755 index 0000000000..e26a811db1 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint16Array.name is "Uint16Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint16Array.name, "Uint16Array"); + +verifyNotEnumerable(Uint16Array, "name"); +verifyNotWritable(Uint16Array, "name"); +verifyConfigurable(Uint16Array, "name"); diff --git a/test/built-ins/TypedArrays/Uint16Array/proto.js b/test/built-ins/TypedArrays/Uint16Array/proto.js new file mode 100755 index 0000000000..0dbb97a4a9 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Uint16Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint16Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Uint16Array/prototype.js b/test/built-ins/TypedArrays/Uint16Array/prototype.js new file mode 100755 index 0000000000..0decd7356f --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Uint16Array.prototype is the Uint16Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint16Array.prototype, Object.getPrototypeOf(new Uint16Array(0))); + +verifyNotEnumerable(Uint16Array, "prototype"); +verifyNotWritable(Uint16Array, "prototype"); +verifyNotConfigurable(Uint16Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Uint16Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint16Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..f0e11a48fc --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Uint16Array.prototype.BYTES_PER_ELEMENT is 2. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint16Array.prototype.BYTES_PER_ELEMENT, 2); + +verifyNotEnumerable(Uint16Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint16Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint16Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint16Array/prototype/constructor.js b/test/built-ins/TypedArrays/Uint16Array/prototype/constructor.js new file mode 100755 index 0000000000..48653c2826 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Uint16Array.prototype.constructor is the Uint16Array object. +info: > + The initial value of Uint16Array.prototype.constructor is the intrinsic + object %Uint16Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint16Array.prototype.constructor, Uint16Array); + +verifyNotEnumerable(Uint16Array.prototype, "constructor"); +verifyWritable(Uint16Array.prototype, "constructor"); +verifyConfigurable(Uint16Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Uint16Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Uint16Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..4f24c6373c --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Uint16Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Uint16Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Uint16Array/prototype/proto.js b/test/built-ins/TypedArrays/Uint16Array/prototype/proto.js new file mode 100755 index 0000000000..370c91c9bc --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Uint16Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint16Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Uint16Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Uint16Array/undefined-newtarget.js new file mode 100755 index 0000000000..fbbd92d4dd --- /dev/null +++ b/test/built-ins/TypedArrays/Uint16Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Uint16Array(); +}, "Uint16Array()"); + +assert.throws(TypeError, function() { + Uint16Array(0); +}, "Uint16Array(0)"); + +assert.throws(TypeError, function() { + Uint16Array(new Uint16Array(1)); +}, "Uint16Array(uint16Array)"); + +assert.throws(TypeError, function() { + Uint16Array([]); +}, "Uint16Array(array)"); + +assert.throws(TypeError, function() { + Uint16Array(new ArrayBuffer(8)); +}, "Uint16Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Uint32Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint32Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..02ecbfe29a --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Uint32Array.BYTES_PER_ELEMENT is 4. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint32Array.BYTES_PER_ELEMENT, 4); + +verifyNotEnumerable(Uint32Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint32Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint32Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint32Array/constructor.js b/test/built-ins/TypedArrays/Uint32Array/constructor.js new file mode 100755 index 0000000000..9b4c82d709 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Uint32Array is a constructor function. +---*/ + +assert.sameValue(typeof Uint32Array, 'function', 'typeof Uint32Array is "function"'); diff --git a/test/built-ins/TypedArrays/Uint32Array/length.js b/test/built-ins/TypedArrays/Uint32Array/length.js new file mode 100755 index 0000000000..56db251b37 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint32Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint32Array.length, 3); + +verifyNotEnumerable(Uint32Array, "length"); +verifyNotWritable(Uint32Array, "length"); +verifyConfigurable(Uint32Array, "length"); diff --git a/test/built-ins/TypedArrays/Uint32Array/name.js b/test/built-ins/TypedArrays/Uint32Array/name.js new file mode 100755 index 0000000000..5d3d0ae63e --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint32Array.name is "Uint32Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint32Array.name, "Uint32Array"); + +verifyNotEnumerable(Uint32Array, "name"); +verifyNotWritable(Uint32Array, "name"); +verifyConfigurable(Uint32Array, "name"); diff --git a/test/built-ins/TypedArrays/Uint32Array/proto.js b/test/built-ins/TypedArrays/Uint32Array/proto.js new file mode 100755 index 0000000000..e62f2d7119 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Uint32Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint32Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Uint32Array/prototype.js b/test/built-ins/TypedArrays/Uint32Array/prototype.js new file mode 100755 index 0000000000..cabdeffb0a --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Uint32Array.prototype is the Uint32Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint32Array.prototype, Object.getPrototypeOf(new Uint32Array(0))); + +verifyNotEnumerable(Uint32Array, "prototype"); +verifyNotWritable(Uint32Array, "prototype"); +verifyNotConfigurable(Uint32Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Uint32Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint32Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..8039eb14c2 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Uint32Array.prototype.BYTES_PER_ELEMENT is 4. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint32Array.prototype.BYTES_PER_ELEMENT, 4); + +verifyNotEnumerable(Uint32Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint32Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint32Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint32Array/prototype/constructor.js b/test/built-ins/TypedArrays/Uint32Array/prototype/constructor.js new file mode 100755 index 0000000000..509a06737e --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Uint32Array.prototype.constructor is the Uint32Array object. +info: > + The initial value of Uint32Array.prototype.constructor is the intrinsic + object %Uint32Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint32Array.prototype.constructor, Uint32Array); + +verifyNotEnumerable(Uint32Array.prototype, "constructor"); +verifyWritable(Uint32Array.prototype, "constructor"); +verifyConfigurable(Uint32Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Uint32Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Uint32Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..a6720280b0 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Uint32Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Uint32Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Uint32Array/prototype/proto.js b/test/built-ins/TypedArrays/Uint32Array/prototype/proto.js new file mode 100755 index 0000000000..92c68297f0 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Uint32Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint32Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Uint32Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Uint32Array/undefined-newtarget.js new file mode 100755 index 0000000000..d74e02736a --- /dev/null +++ b/test/built-ins/TypedArrays/Uint32Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Uint32Array(); +}, "Uint32Array()"); + +assert.throws(TypeError, function() { + Uint32Array(0); +}, "Uint32Array(0)"); + +assert.throws(TypeError, function() { + Uint32Array(new Uint32Array(1)); +}, "Uint32Array(uint32Array)"); + +assert.throws(TypeError, function() { + Uint32Array([]); +}, "Uint32Array(array)"); + +assert.throws(TypeError, function() { + Uint32Array(new ArrayBuffer(8)); +}, "Uint32Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Uint8Array/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint8Array/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..1a7185d46a --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Uint8Array.BYTES_PER_ELEMENT is 1. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8Array.BYTES_PER_ELEMENT, 1); + +verifyNotEnumerable(Uint8Array, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint8Array, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint8Array, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint8Array/constructor.js b/test/built-ins/TypedArrays/Uint8Array/constructor.js new file mode 100755 index 0000000000..a54b74aba3 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Uint8Array is a constructor function. +---*/ + +assert.sameValue(typeof Uint8Array, 'function', 'typeof Uint8Array is "function"'); diff --git a/test/built-ins/TypedArrays/Uint8Array/length.js b/test/built-ins/TypedArrays/Uint8Array/length.js new file mode 100755 index 0000000000..78ef6305d5 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint8Array.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8Array.length, 3); + +verifyNotEnumerable(Uint8Array, "length"); +verifyNotWritable(Uint8Array, "length"); +verifyConfigurable(Uint8Array, "length"); diff --git a/test/built-ins/TypedArrays/Uint8Array/name.js b/test/built-ins/TypedArrays/Uint8Array/name.js new file mode 100755 index 0000000000..f1e3f03a8c --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint8Array.name is "Uint8Array". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8Array.name, "Uint8Array"); + +verifyNotEnumerable(Uint8Array, "name"); +verifyNotWritable(Uint8Array, "name"); +verifyConfigurable(Uint8Array, "name"); diff --git a/test/built-ins/TypedArrays/Uint8Array/proto.js b/test/built-ins/TypedArrays/Uint8Array/proto.js new file mode 100755 index 0000000000..49698bd0ae --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Uint8Array is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint8Array), TypedArray); diff --git a/test/built-ins/TypedArrays/Uint8Array/prototype.js b/test/built-ins/TypedArrays/Uint8Array/prototype.js new file mode 100755 index 0000000000..99fdf36a20 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Uint8Array.prototype is the Uint8Array prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8Array.prototype, Object.getPrototypeOf(new Uint8Array(0))); + +verifyNotEnumerable(Uint8Array, "prototype"); +verifyNotWritable(Uint8Array, "prototype"); +verifyNotConfigurable(Uint8Array, "prototype"); diff --git a/test/built-ins/TypedArrays/Uint8Array/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint8Array/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..74058dde32 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Uint8Array.prototype.BYTES_PER_ELEMENT is 1. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8Array.prototype.BYTES_PER_ELEMENT, 1); + +verifyNotEnumerable(Uint8Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint8Array.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint8Array.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint8Array/prototype/constructor.js b/test/built-ins/TypedArrays/Uint8Array/prototype/constructor.js new file mode 100755 index 0000000000..bd90f145b2 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Uint8Array.prototype.constructor is the Uint8Array object. +info: > + The initial value of Uint8Array.prototype.constructor is the intrinsic + object %Uint8Array%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8Array.prototype.constructor, Uint8Array); + +verifyNotEnumerable(Uint8Array.prototype, "constructor"); +verifyWritable(Uint8Array.prototype, "constructor"); +verifyConfigurable(Uint8Array.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Uint8Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Uint8Array/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..55b25be853 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Uint8Array.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Uint8Array.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Uint8Array/prototype/proto.js b/test/built-ins/TypedArrays/Uint8Array/prototype/proto.js new file mode 100755 index 0000000000..c214a7cf59 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Uint8Array.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint8Array.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Uint8Array/undefined-newtarget.js b/test/built-ins/TypedArrays/Uint8Array/undefined-newtarget.js new file mode 100755 index 0000000000..d592176d6f --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8Array/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Uint8Array(); +}, "Uint8Array()"); + +assert.throws(TypeError, function() { + Uint8Array(0); +}, "Uint8Array(0)"); + +assert.throws(TypeError, function() { + Uint8Array(new Uint8Array(1)); +}, "Uint8Array(uint8Array)"); + +assert.throws(TypeError, function() { + Uint8Array([]); +}, "Uint8Array(array)"); + +assert.throws(TypeError, function() { + Uint8Array(new ArrayBuffer(8)); +}, "Uint8Array(arrayBuffer)"); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint8ClampedArray/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..49998f40ac --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.1 +description: > + The initial value of Uint8ClampedArray.BYTES_PER_ELEMENT is 1. +info: > + The value of TypedArray.BYTES_PER_ELEMENT is the Number value of the + Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8ClampedArray.BYTES_PER_ELEMENT, 1); + +verifyNotEnumerable(Uint8ClampedArray, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint8ClampedArray, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint8ClampedArray, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/constructor.js b/test/built-ins/TypedArrays/Uint8ClampedArray/constructor.js new file mode 100755 index 0000000000..82c630381f --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4 +description: > + Uint8ClampedArray is a constructor function. +---*/ + +assert.sameValue(typeof Uint8ClampedArray, 'function', 'typeof Uint8ClampedArray is "function"'); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/length.js b/test/built-ins/TypedArrays/Uint8ClampedArray/length.js new file mode 100755 index 0000000000..a08ca73700 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/length.js @@ -0,0 +1,29 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint8ClampedArray.length is 3. +info: > + Besides a length property (whose value is 3), [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8ClampedArray.length, 3); + +verifyNotEnumerable(Uint8ClampedArray, "length"); +verifyNotWritable(Uint8ClampedArray, "length"); +verifyConfigurable(Uint8ClampedArray, "length"); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/name.js b/test/built-ins/TypedArrays/Uint8ClampedArray/name.js new file mode 100755 index 0000000000..a3105a2b1e --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/name.js @@ -0,0 +1,27 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + Uint8ClampedArray.name is "Uint8ClampedArray". +info: > + Each TypedArray constructor has a name property whose value is the + String value of the constructor name specified for it in Table 49. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8ClampedArray.name, "Uint8ClampedArray"); + +verifyNotEnumerable(Uint8ClampedArray, "name"); +verifyNotWritable(Uint8ClampedArray, "name"); +verifyConfigurable(Uint8ClampedArray, "name"); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/proto.js b/test/built-ins/TypedArrays/Uint8ClampedArray/proto.js new file mode 100755 index 0000000000..c94c0c8deb --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5 +description: > + The prototype of Uint8ClampedArray is %TypedArray%. +info: > + The value of the [[Prototype]] internal slot of each TypedArray constructor is the %TypedArray% intrinsic object (22.2.1). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint8ClampedArray), TypedArray); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/prototype.js b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype.js new file mode 100755 index 0000000000..2a3a7e1117 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.5.2 +description: > + The initial value of Uint8ClampedArray.prototype is the Uint8ClampedArray prototype object. +info: > + The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6). + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8ClampedArray.prototype, Object.getPrototypeOf(new Uint8ClampedArray(0))); + +verifyNotEnumerable(Uint8ClampedArray, "prototype"); +verifyNotWritable(Uint8ClampedArray, "prototype"); +verifyNotConfigurable(Uint8ClampedArray, "prototype"); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/BYTES_PER_ELEMENT.js b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/BYTES_PER_ELEMENT.js new file mode 100755 index 0000000000..554aae55a4 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/BYTES_PER_ELEMENT.js @@ -0,0 +1,20 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.1 +description: > + The initial value of Uint8ClampedArray.prototype.BYTES_PER_ELEMENT is 1. +info: > + The value of TypedArray.prototype.BYTES_PER_ELEMENT is the Number value + of the Element Size value specified in Table 49 for TypedArray. + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8ClampedArray.prototype.BYTES_PER_ELEMENT, 1); + +verifyNotEnumerable(Uint8ClampedArray.prototype, "BYTES_PER_ELEMENT"); +verifyNotWritable(Uint8ClampedArray.prototype, "BYTES_PER_ELEMENT"); +verifyNotConfigurable(Uint8ClampedArray.prototype, "BYTES_PER_ELEMENT"); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/constructor.js b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/constructor.js new file mode 100755 index 0000000000..8d153d33df --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6.2 +description: > + The initial value of Uint8ClampedArray.prototype.constructor is the Uint8ClampedArray object. +info: > + The initial value of Uint8ClampedArray.prototype.constructor is the intrinsic + object %Uint8ClampedArray%. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(Uint8ClampedArray.prototype.constructor, Uint8ClampedArray); + +verifyNotEnumerable(Uint8ClampedArray.prototype, "constructor"); +verifyWritable(Uint8ClampedArray.prototype, "constructor"); +verifyConfigurable(Uint8ClampedArray.prototype, "constructor"); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/not-typedarray-object.js new file mode 100755 index 0000000000..71a29c0d64 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/not-typedarray-object.js @@ -0,0 +1,16 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + Uint8ClampedArray.prototype is not a TypedArray instance object. +info: > + A TypedArray prototype object is an ordinary object. It does not have + a [[ViewedArrayBuffer]] or any other of the internal slots that are + specific to TypedArray instance objects. +---*/ + +assert.throws(TypeError, function() { + Uint8ClampedArray.prototype.buffer; +}); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/proto.js b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/proto.js new file mode 100755 index 0000000000..72a5c008e0 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/prototype/proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.6 +description: > + The prototype of Uint8ClampedArray.prototype is %TypedArrayPrototype%. +info: > + The value of the [[Prototype]] internal slot of a TypedArray prototype + object is the intrinsic object %TypedArrayPrototype% (22.2.3). +includes: [testTypedArray.js] +---*/ + +assert.sameValue(Object.getPrototypeOf(Uint8ClampedArray.prototype), TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/undefined-newtarget.js b/test/built-ins/TypedArrays/Uint8ClampedArray/undefined-newtarget.js new file mode 100755 index 0000000000..63c1dbd767 --- /dev/null +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/undefined-newtarget.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 22.2.4.1 +description: > + Throws a TypeError if NewTarget is undefined. +info: > + TypedArray( ... argumentsList) + + 1. If NewTarget is undefined, throw a TypeError exception. +---*/ + +assert.throws(TypeError, function() { + Uint8ClampedArray(); +}, "Uint8ClampedArray()"); + +assert.throws(TypeError, function() { + Uint8ClampedArray(0); +}, "Uint8ClampedArray(0)"); + +assert.throws(TypeError, function() { + Uint8ClampedArray(new Uint8ClampedArray(1)); +}, "Uint8ClampedArray(uint8clampedArray)"); + +assert.throws(TypeError, function() { + Uint8ClampedArray([]); +}, "Uint8ClampedArray(array)"); + +assert.throws(TypeError, function() { + Uint8ClampedArray(new ArrayBuffer(8)); +}, "Uint8ClampedArray(arrayBuffer)"); From 33395b52f5ae1bd010d14add130094c0e6b76c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 15 Jan 2016 18:13:36 +0100 Subject: [PATCH 6/6] Add basic surface tests for NativeErrors --- .../NativeErrors/EvalError/constructor.js | 10 ++++++ .../NativeErrors/EvalError/instance-proto.js | 14 ++++++++ .../NativeErrors/EvalError/is-error-object.js | 14 ++++++++ .../NativeErrors/EvalError/length.js | 32 +++++++++++++++++++ test/built-ins/NativeErrors/EvalError/name.js | 24 ++++++++++++++ .../built-ins/NativeErrors/EvalError/proto.js | 12 +++++++ .../NativeErrors/EvalError/prototype.js | 19 +++++++++++ .../EvalError/prototype/constructor.js | 23 +++++++++++++ .../EvalError/prototype/message.js | 23 +++++++++++++ .../NativeErrors/EvalError/prototype/name.js | 24 ++++++++++++++ .../EvalError/prototype/not-error-object.js | 13 ++++++++ .../NativeErrors/EvalError/prototype/proto.js | 13 ++++++++ .../NativeErrors/RangeError/constructor.js | 10 ++++++ .../NativeErrors/RangeError/instance-proto.js | 14 ++++++++ .../RangeError/is-error-object.js | 14 ++++++++ .../NativeErrors/RangeError/length.js | 32 +++++++++++++++++++ .../built-ins/NativeErrors/RangeError/name.js | 24 ++++++++++++++ .../NativeErrors/RangeError/proto.js | 12 +++++++ .../NativeErrors/RangeError/prototype.js | 19 +++++++++++ .../RangeError/prototype/constructor.js | 23 +++++++++++++ .../RangeError/prototype/message.js | 23 +++++++++++++ .../NativeErrors/RangeError/prototype/name.js | 24 ++++++++++++++ .../RangeError/prototype/not-error-object.js | 13 ++++++++ .../RangeError/prototype/proto.js | 13 ++++++++ .../ReferenceError/constructor.js | 10 ++++++ .../ReferenceError/instance-proto.js | 14 ++++++++ .../ReferenceError/is-error-object.js | 14 ++++++++ .../NativeErrors/ReferenceError/length.js | 32 +++++++++++++++++++ .../NativeErrors/ReferenceError/name.js | 24 ++++++++++++++ .../NativeErrors/ReferenceError/proto.js | 12 +++++++ .../NativeErrors/ReferenceError/prototype.js | 19 +++++++++++ .../ReferenceError/prototype/constructor.js | 23 +++++++++++++ .../ReferenceError/prototype/message.js | 23 +++++++++++++ .../ReferenceError/prototype/name.js | 24 ++++++++++++++ .../prototype/not-error-object.js | 13 ++++++++ .../ReferenceError/prototype/proto.js | 13 ++++++++ .../NativeErrors/SyntaxError/constructor.js | 10 ++++++ .../SyntaxError/instance-proto.js | 14 ++++++++ .../SyntaxError/is-error-object.js | 14 ++++++++ .../NativeErrors/SyntaxError/length.js | 32 +++++++++++++++++++ .../NativeErrors/SyntaxError/name.js | 24 ++++++++++++++ .../NativeErrors/SyntaxError/proto.js | 12 +++++++ .../NativeErrors/SyntaxError/prototype.js | 19 +++++++++++ .../SyntaxError/prototype/constructor.js | 23 +++++++++++++ .../SyntaxError/prototype/message.js | 23 +++++++++++++ .../SyntaxError/prototype/name.js | 24 ++++++++++++++ .../SyntaxError/prototype/not-error-object.js | 13 ++++++++ .../SyntaxError/prototype/proto.js | 13 ++++++++ .../NativeErrors/TypeError/constructor.js | 10 ++++++ .../NativeErrors/TypeError/instance-proto.js | 14 ++++++++ .../NativeErrors/TypeError/is-error-object.js | 14 ++++++++ .../NativeErrors/TypeError/length.js | 32 +++++++++++++++++++ test/built-ins/NativeErrors/TypeError/name.js | 24 ++++++++++++++ .../built-ins/NativeErrors/TypeError/proto.js | 12 +++++++ .../NativeErrors/TypeError/prototype.js | 19 +++++++++++ .../TypeError/prototype/constructor.js | 23 +++++++++++++ .../TypeError/prototype/message.js | 23 +++++++++++++ .../NativeErrors/TypeError/prototype/name.js | 24 ++++++++++++++ .../TypeError/prototype/not-error-object.js | 13 ++++++++ .../NativeErrors/TypeError/prototype/proto.js | 13 ++++++++ .../NativeErrors/URIError/constructor.js | 10 ++++++ .../NativeErrors/URIError/instance-proto.js | 14 ++++++++ .../NativeErrors/URIError/is-error-object.js | 14 ++++++++ .../built-ins/NativeErrors/URIError/length.js | 32 +++++++++++++++++++ test/built-ins/NativeErrors/URIError/name.js | 24 ++++++++++++++ test/built-ins/NativeErrors/URIError/proto.js | 12 +++++++ .../NativeErrors/URIError/prototype.js | 19 +++++++++++ .../URIError/prototype/constructor.js | 23 +++++++++++++ .../URIError/prototype/message.js | 23 +++++++++++++ .../NativeErrors/URIError/prototype/name.js | 24 ++++++++++++++ .../URIError/prototype/not-error-object.js | 13 ++++++++ .../NativeErrors/URIError/prototype/proto.js | 13 ++++++++ 72 files changed, 1326 insertions(+) create mode 100755 test/built-ins/NativeErrors/EvalError/constructor.js create mode 100755 test/built-ins/NativeErrors/EvalError/instance-proto.js create mode 100755 test/built-ins/NativeErrors/EvalError/is-error-object.js create mode 100755 test/built-ins/NativeErrors/EvalError/length.js create mode 100755 test/built-ins/NativeErrors/EvalError/name.js create mode 100755 test/built-ins/NativeErrors/EvalError/proto.js create mode 100755 test/built-ins/NativeErrors/EvalError/prototype.js create mode 100755 test/built-ins/NativeErrors/EvalError/prototype/constructor.js create mode 100755 test/built-ins/NativeErrors/EvalError/prototype/message.js create mode 100755 test/built-ins/NativeErrors/EvalError/prototype/name.js create mode 100755 test/built-ins/NativeErrors/EvalError/prototype/not-error-object.js create mode 100755 test/built-ins/NativeErrors/EvalError/prototype/proto.js create mode 100755 test/built-ins/NativeErrors/RangeError/constructor.js create mode 100755 test/built-ins/NativeErrors/RangeError/instance-proto.js create mode 100755 test/built-ins/NativeErrors/RangeError/is-error-object.js create mode 100755 test/built-ins/NativeErrors/RangeError/length.js create mode 100755 test/built-ins/NativeErrors/RangeError/name.js create mode 100755 test/built-ins/NativeErrors/RangeError/proto.js create mode 100755 test/built-ins/NativeErrors/RangeError/prototype.js create mode 100755 test/built-ins/NativeErrors/RangeError/prototype/constructor.js create mode 100755 test/built-ins/NativeErrors/RangeError/prototype/message.js create mode 100755 test/built-ins/NativeErrors/RangeError/prototype/name.js create mode 100755 test/built-ins/NativeErrors/RangeError/prototype/not-error-object.js create mode 100755 test/built-ins/NativeErrors/RangeError/prototype/proto.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/constructor.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/instance-proto.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/is-error-object.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/length.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/name.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/proto.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/prototype.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/prototype/constructor.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/prototype/message.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/prototype/name.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/prototype/not-error-object.js create mode 100755 test/built-ins/NativeErrors/ReferenceError/prototype/proto.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/constructor.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/instance-proto.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/is-error-object.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/length.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/name.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/proto.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/prototype.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/prototype/constructor.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/prototype/message.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/prototype/name.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/prototype/not-error-object.js create mode 100755 test/built-ins/NativeErrors/SyntaxError/prototype/proto.js create mode 100755 test/built-ins/NativeErrors/TypeError/constructor.js create mode 100755 test/built-ins/NativeErrors/TypeError/instance-proto.js create mode 100755 test/built-ins/NativeErrors/TypeError/is-error-object.js create mode 100755 test/built-ins/NativeErrors/TypeError/length.js create mode 100755 test/built-ins/NativeErrors/TypeError/name.js create mode 100755 test/built-ins/NativeErrors/TypeError/proto.js create mode 100755 test/built-ins/NativeErrors/TypeError/prototype.js create mode 100755 test/built-ins/NativeErrors/TypeError/prototype/constructor.js create mode 100755 test/built-ins/NativeErrors/TypeError/prototype/message.js create mode 100755 test/built-ins/NativeErrors/TypeError/prototype/name.js create mode 100755 test/built-ins/NativeErrors/TypeError/prototype/not-error-object.js create mode 100755 test/built-ins/NativeErrors/TypeError/prototype/proto.js create mode 100755 test/built-ins/NativeErrors/URIError/constructor.js create mode 100755 test/built-ins/NativeErrors/URIError/instance-proto.js create mode 100755 test/built-ins/NativeErrors/URIError/is-error-object.js create mode 100755 test/built-ins/NativeErrors/URIError/length.js create mode 100755 test/built-ins/NativeErrors/URIError/name.js create mode 100755 test/built-ins/NativeErrors/URIError/proto.js create mode 100755 test/built-ins/NativeErrors/URIError/prototype.js create mode 100755 test/built-ins/NativeErrors/URIError/prototype/constructor.js create mode 100755 test/built-ins/NativeErrors/URIError/prototype/message.js create mode 100755 test/built-ins/NativeErrors/URIError/prototype/name.js create mode 100755 test/built-ins/NativeErrors/URIError/prototype/not-error-object.js create mode 100755 test/built-ins/NativeErrors/URIError/prototype/proto.js diff --git a/test/built-ins/NativeErrors/EvalError/constructor.js b/test/built-ins/NativeErrors/EvalError/constructor.js new file mode 100755 index 0000000000..ed388b47ea --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + EvalError is a constructor function. +---*/ + +assert.sameValue(typeof EvalError, 'function', 'typeof EvalError is "function"'); diff --git a/test/built-ins/NativeErrors/EvalError/instance-proto.js b/test/built-ins/NativeErrors/EvalError/instance-proto.js new file mode 100755 index 0000000000..8fe8ff9871 --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/instance-proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + The prototype of EvalError instances is EvalError.prototype. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.getPrototypeOf(new EvalError), EvalError.prototype); diff --git a/test/built-ins/NativeErrors/EvalError/is-error-object.js b/test/built-ins/NativeErrors/EvalError/is-error-object.js new file mode 100755 index 0000000000..9229b24aab --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/is-error-object.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + EvalError instances have an [[ErrorData]] internal slot. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.prototype.toString.call(new EvalError), "[object Error]"); diff --git a/test/built-ins/NativeErrors/EvalError/length.js b/test/built-ins/NativeErrors/EvalError/length.js new file mode 100755 index 0000000000..581d3eb75a --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + EvalError.length is 1. +info: > + NativeError ( message ) + + 19.5.6.2 Properties of the NativeError Constructors + Besides the length property (whose value is 1) [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(EvalError.length, 1); + +verifyNotEnumerable(EvalError, "length"); +verifyNotWritable(EvalError, "length"); +verifyConfigurable(EvalError, "length"); diff --git a/test/built-ins/NativeErrors/EvalError/name.js b/test/built-ins/NativeErrors/EvalError/name.js new file mode 100755 index 0000000000..d810c49f36 --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + EvalError.name is "EvalError". +info: > + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(EvalError.name, "EvalError"); + +verifyNotEnumerable(EvalError, "name"); +verifyNotWritable(EvalError, "name"); +verifyConfigurable(EvalError, "name"); diff --git a/test/built-ins/NativeErrors/EvalError/proto.js b/test/built-ins/NativeErrors/EvalError/proto.js new file mode 100755 index 0000000000..a9faac145d --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/proto.js @@ -0,0 +1,12 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + The prototype of EvalError is Error. +info: > + The value of the [[Prototype]] internal slot of a NativeError constructor is the intrinsic object %Error% (19.5.1). +---*/ + +assert.sameValue(Object.getPrototypeOf(EvalError), Error); diff --git a/test/built-ins/NativeErrors/EvalError/prototype.js b/test/built-ins/NativeErrors/EvalError/prototype.js new file mode 100755 index 0000000000..f863ff47e3 --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2.1 +description: > + The initial value of EvalError.prototype is the EvalError prototype object. +info: > + The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3). + Each NativeError constructor has a distinct prototype object. + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(EvalError.prototype, Object.getPrototypeOf(new EvalError)); + +verifyNotEnumerable(EvalError, "prototype"); +verifyNotWritable(EvalError, "prototype"); +verifyNotConfigurable(EvalError, "prototype"); diff --git a/test/built-ins/NativeErrors/EvalError/prototype/constructor.js b/test/built-ins/NativeErrors/EvalError/prototype/constructor.js new file mode 100755 index 0000000000..581925f297 --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.1 +description: > + The initial value of EvalError.prototype.constructor is the EvalError object. +info: > + The initial value of the constructor property of the prototype for a given NativeError + constructor is the corresponding intrinsic object %NativeError% (19.5.6.1). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(EvalError.prototype.constructor, EvalError); + +verifyNotEnumerable(EvalError.prototype, "constructor"); +verifyWritable(EvalError.prototype, "constructor"); +verifyConfigurable(EvalError.prototype, "constructor"); diff --git a/test/built-ins/NativeErrors/EvalError/prototype/message.js b/test/built-ins/NativeErrors/EvalError/prototype/message.js new file mode 100755 index 0000000000..e256bfe914 --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/prototype/message.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.2 +description: > + The initial value of EvalError.prototype.message is the empty string. +info: > + The initial value of the message property of the prototype for a given NativeError + constructor is the empty String. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(EvalError.prototype.message, ""); + +verifyNotEnumerable(EvalError.prototype, "message"); +verifyWritable(EvalError.prototype, "message"); +verifyConfigurable(EvalError.prototype, "message"); diff --git a/test/built-ins/NativeErrors/EvalError/prototype/name.js b/test/built-ins/NativeErrors/EvalError/prototype/name.js new file mode 100755 index 0000000000..6b0db3901f --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/prototype/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.3 +description: > + The initial value of EvalError.prototype.name is "EvalError". +info: > + The initial value of the name property of the prototype for a given NativeError + constructor is a string consisting of the name of the constructor (the name used + instead of NativeError). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(EvalError.prototype.name, "EvalError"); + +verifyNotEnumerable(EvalError.prototype, "name"); +verifyWritable(EvalError.prototype, "name"); +verifyConfigurable(EvalError.prototype, "name"); diff --git a/test/built-ins/NativeErrors/EvalError/prototype/not-error-object.js b/test/built-ins/NativeErrors/EvalError/prototype/not-error-object.js new file mode 100755 index 0000000000..1e58225911 --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/prototype/not-error-object.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + EvalError.prototype is not an error object instance. +info: > + Each NativeError prototype object is an ordinary object. It is not an + Error instance and does not have an [[ErrorData]] internal slot. +---*/ + +assert.sameValue(Object.prototype.toString.call(EvalError.prototype), "[object Object]"); diff --git a/test/built-ins/NativeErrors/EvalError/prototype/proto.js b/test/built-ins/NativeErrors/EvalError/prototype/proto.js new file mode 100755 index 0000000000..14f9deac93 --- /dev/null +++ b/test/built-ins/NativeErrors/EvalError/prototype/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + The prototype of EvalError.prototype is Error.prototype. +info: > + The value of the [[Prototype]] internal slot of each NativeError prototype + object is the intrinsic object %ErrorPrototype% (19.5.3). +---*/ + +assert.sameValue(Object.getPrototypeOf(EvalError.prototype), Error.prototype); diff --git a/test/built-ins/NativeErrors/RangeError/constructor.js b/test/built-ins/NativeErrors/RangeError/constructor.js new file mode 100755 index 0000000000..c3d5e0a2ec --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + RangeError is a constructor function. +---*/ + +assert.sameValue(typeof RangeError, 'function', 'typeof RangeError is "function"'); diff --git a/test/built-ins/NativeErrors/RangeError/instance-proto.js b/test/built-ins/NativeErrors/RangeError/instance-proto.js new file mode 100755 index 0000000000..88d40bf6d7 --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/instance-proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + The prototype of RangeError instances is RangeError.prototype. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.getPrototypeOf(new RangeError), RangeError.prototype); diff --git a/test/built-ins/NativeErrors/RangeError/is-error-object.js b/test/built-ins/NativeErrors/RangeError/is-error-object.js new file mode 100755 index 0000000000..0e4bd55b7a --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/is-error-object.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + RangeError instances have an [[ErrorData]] internal slot. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.prototype.toString.call(new RangeError), "[object Error]"); diff --git a/test/built-ins/NativeErrors/RangeError/length.js b/test/built-ins/NativeErrors/RangeError/length.js new file mode 100755 index 0000000000..c4be5ca7b0 --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + RangeError.length is 1. +info: > + NativeError ( message ) + + 19.5.6.2 Properties of the NativeError Constructors + Besides the length property (whose value is 1) [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RangeError.length, 1); + +verifyNotEnumerable(RangeError, "length"); +verifyNotWritable(RangeError, "length"); +verifyConfigurable(RangeError, "length"); diff --git a/test/built-ins/NativeErrors/RangeError/name.js b/test/built-ins/NativeErrors/RangeError/name.js new file mode 100755 index 0000000000..4368390edf --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + RangeError.name is "RangeError". +info: > + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RangeError.name, "RangeError"); + +verifyNotEnumerable(RangeError, "name"); +verifyNotWritable(RangeError, "name"); +verifyConfigurable(RangeError, "name"); diff --git a/test/built-ins/NativeErrors/RangeError/proto.js b/test/built-ins/NativeErrors/RangeError/proto.js new file mode 100755 index 0000000000..e098b4f327 --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/proto.js @@ -0,0 +1,12 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + The prototype of RangeError is Error. +info: > + The value of the [[Prototype]] internal slot of a NativeError constructor is the intrinsic object %Error% (19.5.1). +---*/ + +assert.sameValue(Object.getPrototypeOf(RangeError), Error); diff --git a/test/built-ins/NativeErrors/RangeError/prototype.js b/test/built-ins/NativeErrors/RangeError/prototype.js new file mode 100755 index 0000000000..a802b8409c --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2.1 +description: > + The initial value of RangeError.prototype is the RangeError prototype object. +info: > + The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3). + Each NativeError constructor has a distinct prototype object. + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RangeError.prototype, Object.getPrototypeOf(new RangeError)); + +verifyNotEnumerable(RangeError, "prototype"); +verifyNotWritable(RangeError, "prototype"); +verifyNotConfigurable(RangeError, "prototype"); diff --git a/test/built-ins/NativeErrors/RangeError/prototype/constructor.js b/test/built-ins/NativeErrors/RangeError/prototype/constructor.js new file mode 100755 index 0000000000..d94e491c0f --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.1 +description: > + The initial value of RangeError.prototype.constructor is the RangeError object. +info: > + The initial value of the constructor property of the prototype for a given NativeError + constructor is the corresponding intrinsic object %NativeError% (19.5.6.1). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RangeError.prototype.constructor, RangeError); + +verifyNotEnumerable(RangeError.prototype, "constructor"); +verifyWritable(RangeError.prototype, "constructor"); +verifyConfigurable(RangeError.prototype, "constructor"); diff --git a/test/built-ins/NativeErrors/RangeError/prototype/message.js b/test/built-ins/NativeErrors/RangeError/prototype/message.js new file mode 100755 index 0000000000..059477b8e8 --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/prototype/message.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.2 +description: > + The initial value of RangeError.prototype.message is the empty string. +info: > + The initial value of the message property of the prototype for a given NativeError + constructor is the empty String. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RangeError.prototype.message, ""); + +verifyNotEnumerable(RangeError.prototype, "message"); +verifyWritable(RangeError.prototype, "message"); +verifyConfigurable(RangeError.prototype, "message"); diff --git a/test/built-ins/NativeErrors/RangeError/prototype/name.js b/test/built-ins/NativeErrors/RangeError/prototype/name.js new file mode 100755 index 0000000000..ef4f857705 --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/prototype/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.3 +description: > + The initial value of RangeError.prototype.name is "RangeError". +info: > + The initial value of the name property of the prototype for a given NativeError + constructor is a string consisting of the name of the constructor (the name used + instead of NativeError). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(RangeError.prototype.name, "RangeError"); + +verifyNotEnumerable(RangeError.prototype, "name"); +verifyWritable(RangeError.prototype, "name"); +verifyConfigurable(RangeError.prototype, "name"); diff --git a/test/built-ins/NativeErrors/RangeError/prototype/not-error-object.js b/test/built-ins/NativeErrors/RangeError/prototype/not-error-object.js new file mode 100755 index 0000000000..d7d5bf64be --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/prototype/not-error-object.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + RangeError.prototype is not an error object instance. +info: > + Each NativeError prototype object is an ordinary object. It is not an + Error instance and does not have an [[ErrorData]] internal slot. +---*/ + +assert.sameValue(Object.prototype.toString.call(RangeError.prototype), "[object Object]"); diff --git a/test/built-ins/NativeErrors/RangeError/prototype/proto.js b/test/built-ins/NativeErrors/RangeError/prototype/proto.js new file mode 100755 index 0000000000..200ed2ecf3 --- /dev/null +++ b/test/built-ins/NativeErrors/RangeError/prototype/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + The prototype of RangeError.prototype is Error.prototype. +info: > + The value of the [[Prototype]] internal slot of each NativeError prototype + object is the intrinsic object %ErrorPrototype% (19.5.3). +---*/ + +assert.sameValue(Object.getPrototypeOf(RangeError.prototype), Error.prototype); diff --git a/test/built-ins/NativeErrors/ReferenceError/constructor.js b/test/built-ins/NativeErrors/ReferenceError/constructor.js new file mode 100755 index 0000000000..085dd391d6 --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + ReferenceError is a constructor function. +---*/ + +assert.sameValue(typeof ReferenceError, 'function', 'typeof ReferenceError is "function"'); diff --git a/test/built-ins/NativeErrors/ReferenceError/instance-proto.js b/test/built-ins/NativeErrors/ReferenceError/instance-proto.js new file mode 100755 index 0000000000..fd580d04da --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/instance-proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + The prototype of ReferenceError instances is ReferenceError.prototype. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.getPrototypeOf(new ReferenceError), ReferenceError.prototype); diff --git a/test/built-ins/NativeErrors/ReferenceError/is-error-object.js b/test/built-ins/NativeErrors/ReferenceError/is-error-object.js new file mode 100755 index 0000000000..e11906a79a --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/is-error-object.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + ReferenceError instances have an [[ErrorData]] internal slot. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.prototype.toString.call(new ReferenceError), "[object Error]"); diff --git a/test/built-ins/NativeErrors/ReferenceError/length.js b/test/built-ins/NativeErrors/ReferenceError/length.js new file mode 100755 index 0000000000..079ccf05ae --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + ReferenceError.length is 1. +info: > + NativeError ( message ) + + 19.5.6.2 Properties of the NativeError Constructors + Besides the length property (whose value is 1) [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ReferenceError.length, 1); + +verifyNotEnumerable(ReferenceError, "length"); +verifyNotWritable(ReferenceError, "length"); +verifyConfigurable(ReferenceError, "length"); diff --git a/test/built-ins/NativeErrors/ReferenceError/name.js b/test/built-ins/NativeErrors/ReferenceError/name.js new file mode 100755 index 0000000000..ef93bfdae6 --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + ReferenceError.name is "ReferenceError". +info: > + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ReferenceError.name, "ReferenceError"); + +verifyNotEnumerable(ReferenceError, "name"); +verifyNotWritable(ReferenceError, "name"); +verifyConfigurable(ReferenceError, "name"); diff --git a/test/built-ins/NativeErrors/ReferenceError/proto.js b/test/built-ins/NativeErrors/ReferenceError/proto.js new file mode 100755 index 0000000000..7d34c4174c --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/proto.js @@ -0,0 +1,12 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + The prototype of ReferenceError is Error. +info: > + The value of the [[Prototype]] internal slot of a NativeError constructor is the intrinsic object %Error% (19.5.1). +---*/ + +assert.sameValue(Object.getPrototypeOf(ReferenceError), Error); diff --git a/test/built-ins/NativeErrors/ReferenceError/prototype.js b/test/built-ins/NativeErrors/ReferenceError/prototype.js new file mode 100755 index 0000000000..160ea5f61f --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2.1 +description: > + The initial value of ReferenceError.prototype is the ReferenceError prototype object. +info: > + The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3). + Each NativeError constructor has a distinct prototype object. + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ReferenceError.prototype, Object.getPrototypeOf(new ReferenceError)); + +verifyNotEnumerable(ReferenceError, "prototype"); +verifyNotWritable(ReferenceError, "prototype"); +verifyNotConfigurable(ReferenceError, "prototype"); diff --git a/test/built-ins/NativeErrors/ReferenceError/prototype/constructor.js b/test/built-ins/NativeErrors/ReferenceError/prototype/constructor.js new file mode 100755 index 0000000000..d3d159d9bc --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.1 +description: > + The initial value of ReferenceError.prototype.constructor is the ReferenceError object. +info: > + The initial value of the constructor property of the prototype for a given NativeError + constructor is the corresponding intrinsic object %NativeError% (19.5.6.1). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ReferenceError.prototype.constructor, ReferenceError); + +verifyNotEnumerable(ReferenceError.prototype, "constructor"); +verifyWritable(ReferenceError.prototype, "constructor"); +verifyConfigurable(ReferenceError.prototype, "constructor"); diff --git a/test/built-ins/NativeErrors/ReferenceError/prototype/message.js b/test/built-ins/NativeErrors/ReferenceError/prototype/message.js new file mode 100755 index 0000000000..836bb6fef2 --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/prototype/message.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.2 +description: > + The initial value of ReferenceError.prototype.message is the empty string. +info: > + The initial value of the message property of the prototype for a given NativeError + constructor is the empty String. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ReferenceError.prototype.message, ""); + +verifyNotEnumerable(ReferenceError.prototype, "message"); +verifyWritable(ReferenceError.prototype, "message"); +verifyConfigurable(ReferenceError.prototype, "message"); diff --git a/test/built-ins/NativeErrors/ReferenceError/prototype/name.js b/test/built-ins/NativeErrors/ReferenceError/prototype/name.js new file mode 100755 index 0000000000..92fba48cfc --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/prototype/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.3 +description: > + The initial value of ReferenceError.prototype.name is "ReferenceError". +info: > + The initial value of the name property of the prototype for a given NativeError + constructor is a string consisting of the name of the constructor (the name used + instead of NativeError). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(ReferenceError.prototype.name, "ReferenceError"); + +verifyNotEnumerable(ReferenceError.prototype, "name"); +verifyWritable(ReferenceError.prototype, "name"); +verifyConfigurable(ReferenceError.prototype, "name"); diff --git a/test/built-ins/NativeErrors/ReferenceError/prototype/not-error-object.js b/test/built-ins/NativeErrors/ReferenceError/prototype/not-error-object.js new file mode 100755 index 0000000000..6bb112df8d --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/prototype/not-error-object.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + ReferenceError.prototype is not an error object instance. +info: > + Each NativeError prototype object is an ordinary object. It is not an + Error instance and does not have an [[ErrorData]] internal slot. +---*/ + +assert.sameValue(Object.prototype.toString.call(ReferenceError.prototype), "[object Object]"); diff --git a/test/built-ins/NativeErrors/ReferenceError/prototype/proto.js b/test/built-ins/NativeErrors/ReferenceError/prototype/proto.js new file mode 100755 index 0000000000..bffd499ef2 --- /dev/null +++ b/test/built-ins/NativeErrors/ReferenceError/prototype/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + The prototype of ReferenceError.prototype is Error.prototype. +info: > + The value of the [[Prototype]] internal slot of each NativeError prototype + object is the intrinsic object %ErrorPrototype% (19.5.3). +---*/ + +assert.sameValue(Object.getPrototypeOf(ReferenceError.prototype), Error.prototype); diff --git a/test/built-ins/NativeErrors/SyntaxError/constructor.js b/test/built-ins/NativeErrors/SyntaxError/constructor.js new file mode 100755 index 0000000000..ecbae3e236 --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + SyntaxError is a constructor function. +---*/ + +assert.sameValue(typeof SyntaxError, 'function', 'typeof SyntaxError is "function"'); diff --git a/test/built-ins/NativeErrors/SyntaxError/instance-proto.js b/test/built-ins/NativeErrors/SyntaxError/instance-proto.js new file mode 100755 index 0000000000..745c1cb5ed --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/instance-proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + The prototype of SyntaxError instances is SyntaxError.prototype. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.getPrototypeOf(new SyntaxError), SyntaxError.prototype); diff --git a/test/built-ins/NativeErrors/SyntaxError/is-error-object.js b/test/built-ins/NativeErrors/SyntaxError/is-error-object.js new file mode 100755 index 0000000000..c4b4d4fa94 --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/is-error-object.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + SyntaxError instances have an [[ErrorData]] internal slot. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.prototype.toString.call(new SyntaxError), "[object Error]"); diff --git a/test/built-ins/NativeErrors/SyntaxError/length.js b/test/built-ins/NativeErrors/SyntaxError/length.js new file mode 100755 index 0000000000..6836ed76be --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + SyntaxError.length is 1. +info: > + NativeError ( message ) + + 19.5.6.2 Properties of the NativeError Constructors + Besides the length property (whose value is 1) [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(SyntaxError.length, 1); + +verifyNotEnumerable(SyntaxError, "length"); +verifyNotWritable(SyntaxError, "length"); +verifyConfigurable(SyntaxError, "length"); diff --git a/test/built-ins/NativeErrors/SyntaxError/name.js b/test/built-ins/NativeErrors/SyntaxError/name.js new file mode 100755 index 0000000000..34f04980d8 --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + SyntaxError.name is "SyntaxError". +info: > + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(SyntaxError.name, "SyntaxError"); + +verifyNotEnumerable(SyntaxError, "name"); +verifyNotWritable(SyntaxError, "name"); +verifyConfigurable(SyntaxError, "name"); diff --git a/test/built-ins/NativeErrors/SyntaxError/proto.js b/test/built-ins/NativeErrors/SyntaxError/proto.js new file mode 100755 index 0000000000..6ca28b2d58 --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/proto.js @@ -0,0 +1,12 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + The prototype of SyntaxError is Error. +info: > + The value of the [[Prototype]] internal slot of a NativeError constructor is the intrinsic object %Error% (19.5.1). +---*/ + +assert.sameValue(Object.getPrototypeOf(SyntaxError), Error); diff --git a/test/built-ins/NativeErrors/SyntaxError/prototype.js b/test/built-ins/NativeErrors/SyntaxError/prototype.js new file mode 100755 index 0000000000..f6ab80d837 --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2.1 +description: > + The initial value of SyntaxError.prototype is the SyntaxError prototype object. +info: > + The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3). + Each NativeError constructor has a distinct prototype object. + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(SyntaxError.prototype, Object.getPrototypeOf(new SyntaxError)); + +verifyNotEnumerable(SyntaxError, "prototype"); +verifyNotWritable(SyntaxError, "prototype"); +verifyNotConfigurable(SyntaxError, "prototype"); diff --git a/test/built-ins/NativeErrors/SyntaxError/prototype/constructor.js b/test/built-ins/NativeErrors/SyntaxError/prototype/constructor.js new file mode 100755 index 0000000000..138c053f3b --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.1 +description: > + The initial value of SyntaxError.prototype.constructor is the SyntaxError object. +info: > + The initial value of the constructor property of the prototype for a given NativeError + constructor is the corresponding intrinsic object %NativeError% (19.5.6.1). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(SyntaxError.prototype.constructor, SyntaxError); + +verifyNotEnumerable(SyntaxError.prototype, "constructor"); +verifyWritable(SyntaxError.prototype, "constructor"); +verifyConfigurable(SyntaxError.prototype, "constructor"); diff --git a/test/built-ins/NativeErrors/SyntaxError/prototype/message.js b/test/built-ins/NativeErrors/SyntaxError/prototype/message.js new file mode 100755 index 0000000000..fdebed5cae --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/prototype/message.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.2 +description: > + The initial value of SyntaxError.prototype.message is the empty string. +info: > + The initial value of the message property of the prototype for a given NativeError + constructor is the empty String. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(SyntaxError.prototype.message, ""); + +verifyNotEnumerable(SyntaxError.prototype, "message"); +verifyWritable(SyntaxError.prototype, "message"); +verifyConfigurable(SyntaxError.prototype, "message"); diff --git a/test/built-ins/NativeErrors/SyntaxError/prototype/name.js b/test/built-ins/NativeErrors/SyntaxError/prototype/name.js new file mode 100755 index 0000000000..91971a50b0 --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/prototype/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.3 +description: > + The initial value of SyntaxError.prototype.name is "SyntaxError". +info: > + The initial value of the name property of the prototype for a given NativeError + constructor is a string consisting of the name of the constructor (the name used + instead of NativeError). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(SyntaxError.prototype.name, "SyntaxError"); + +verifyNotEnumerable(SyntaxError.prototype, "name"); +verifyWritable(SyntaxError.prototype, "name"); +verifyConfigurable(SyntaxError.prototype, "name"); diff --git a/test/built-ins/NativeErrors/SyntaxError/prototype/not-error-object.js b/test/built-ins/NativeErrors/SyntaxError/prototype/not-error-object.js new file mode 100755 index 0000000000..fd0f67fd71 --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/prototype/not-error-object.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + SyntaxError.prototype is not an error object instance. +info: > + Each NativeError prototype object is an ordinary object. It is not an + Error instance and does not have an [[ErrorData]] internal slot. +---*/ + +assert.sameValue(Object.prototype.toString.call(SyntaxError.prototype), "[object Object]"); diff --git a/test/built-ins/NativeErrors/SyntaxError/prototype/proto.js b/test/built-ins/NativeErrors/SyntaxError/prototype/proto.js new file mode 100755 index 0000000000..e1654ece7a --- /dev/null +++ b/test/built-ins/NativeErrors/SyntaxError/prototype/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + The prototype of SyntaxError.prototype is Error.prototype. +info: > + The value of the [[Prototype]] internal slot of each NativeError prototype + object is the intrinsic object %ErrorPrototype% (19.5.3). +---*/ + +assert.sameValue(Object.getPrototypeOf(SyntaxError.prototype), Error.prototype); diff --git a/test/built-ins/NativeErrors/TypeError/constructor.js b/test/built-ins/NativeErrors/TypeError/constructor.js new file mode 100755 index 0000000000..777d410d70 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + TypeError is a constructor function. +---*/ + +assert.sameValue(typeof TypeError, 'function', 'typeof TypeError is "function"'); diff --git a/test/built-ins/NativeErrors/TypeError/instance-proto.js b/test/built-ins/NativeErrors/TypeError/instance-proto.js new file mode 100755 index 0000000000..fa176ad646 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/instance-proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + The prototype of TypeError instances is TypeError.prototype. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.getPrototypeOf(new TypeError), TypeError.prototype); diff --git a/test/built-ins/NativeErrors/TypeError/is-error-object.js b/test/built-ins/NativeErrors/TypeError/is-error-object.js new file mode 100755 index 0000000000..3df960fe32 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/is-error-object.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + TypeError instances have an [[ErrorData]] internal slot. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.prototype.toString.call(new TypeError), "[object Error]"); diff --git a/test/built-ins/NativeErrors/TypeError/length.js b/test/built-ins/NativeErrors/TypeError/length.js new file mode 100755 index 0000000000..cbd3a83880 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + TypeError.length is 1. +info: > + NativeError ( message ) + + 19.5.6.2 Properties of the NativeError Constructors + Besides the length property (whose value is 1) [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(TypeError.length, 1); + +verifyNotEnumerable(TypeError, "length"); +verifyNotWritable(TypeError, "length"); +verifyConfigurable(TypeError, "length"); diff --git a/test/built-ins/NativeErrors/TypeError/name.js b/test/built-ins/NativeErrors/TypeError/name.js new file mode 100755 index 0000000000..be5a5e3d27 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + TypeError.name is "TypeError". +info: > + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(TypeError.name, "TypeError"); + +verifyNotEnumerable(TypeError, "name"); +verifyNotWritable(TypeError, "name"); +verifyConfigurable(TypeError, "name"); diff --git a/test/built-ins/NativeErrors/TypeError/proto.js b/test/built-ins/NativeErrors/TypeError/proto.js new file mode 100755 index 0000000000..c9f482f85b --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/proto.js @@ -0,0 +1,12 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + The prototype of TypeError is Error. +info: > + The value of the [[Prototype]] internal slot of a NativeError constructor is the intrinsic object %Error% (19.5.1). +---*/ + +assert.sameValue(Object.getPrototypeOf(TypeError), Error); diff --git a/test/built-ins/NativeErrors/TypeError/prototype.js b/test/built-ins/NativeErrors/TypeError/prototype.js new file mode 100755 index 0000000000..1b959527ce --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2.1 +description: > + The initial value of TypeError.prototype is the TypeError prototype object. +info: > + The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3). + Each NativeError constructor has a distinct prototype object. + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(TypeError.prototype, Object.getPrototypeOf(new TypeError)); + +verifyNotEnumerable(TypeError, "prototype"); +verifyNotWritable(TypeError, "prototype"); +verifyNotConfigurable(TypeError, "prototype"); diff --git a/test/built-ins/NativeErrors/TypeError/prototype/constructor.js b/test/built-ins/NativeErrors/TypeError/prototype/constructor.js new file mode 100755 index 0000000000..4c27ee5fa3 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.1 +description: > + The initial value of TypeError.prototype.constructor is the TypeError object. +info: > + The initial value of the constructor property of the prototype for a given NativeError + constructor is the corresponding intrinsic object %NativeError% (19.5.6.1). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(TypeError.prototype.constructor, TypeError); + +verifyNotEnumerable(TypeError.prototype, "constructor"); +verifyWritable(TypeError.prototype, "constructor"); +verifyConfigurable(TypeError.prototype, "constructor"); diff --git a/test/built-ins/NativeErrors/TypeError/prototype/message.js b/test/built-ins/NativeErrors/TypeError/prototype/message.js new file mode 100755 index 0000000000..6dd1fdfbd7 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/prototype/message.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.2 +description: > + The initial value of TypeError.prototype.message is the empty string. +info: > + The initial value of the message property of the prototype for a given NativeError + constructor is the empty String. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(TypeError.prototype.message, ""); + +verifyNotEnumerable(TypeError.prototype, "message"); +verifyWritable(TypeError.prototype, "message"); +verifyConfigurable(TypeError.prototype, "message"); diff --git a/test/built-ins/NativeErrors/TypeError/prototype/name.js b/test/built-ins/NativeErrors/TypeError/prototype/name.js new file mode 100755 index 0000000000..687c27bc59 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/prototype/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.3 +description: > + The initial value of TypeError.prototype.name is "TypeError". +info: > + The initial value of the name property of the prototype for a given NativeError + constructor is a string consisting of the name of the constructor (the name used + instead of NativeError). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(TypeError.prototype.name, "TypeError"); + +verifyNotEnumerable(TypeError.prototype, "name"); +verifyWritable(TypeError.prototype, "name"); +verifyConfigurable(TypeError.prototype, "name"); diff --git a/test/built-ins/NativeErrors/TypeError/prototype/not-error-object.js b/test/built-ins/NativeErrors/TypeError/prototype/not-error-object.js new file mode 100755 index 0000000000..d30e5e8e51 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/prototype/not-error-object.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + TypeError.prototype is not an error object instance. +info: > + Each NativeError prototype object is an ordinary object. It is not an + Error instance and does not have an [[ErrorData]] internal slot. +---*/ + +assert.sameValue(Object.prototype.toString.call(TypeError.prototype), "[object Object]"); diff --git a/test/built-ins/NativeErrors/TypeError/prototype/proto.js b/test/built-ins/NativeErrors/TypeError/prototype/proto.js new file mode 100755 index 0000000000..af405e1503 --- /dev/null +++ b/test/built-ins/NativeErrors/TypeError/prototype/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + The prototype of TypeError.prototype is Error.prototype. +info: > + The value of the [[Prototype]] internal slot of each NativeError prototype + object is the intrinsic object %ErrorPrototype% (19.5.3). +---*/ + +assert.sameValue(Object.getPrototypeOf(TypeError.prototype), Error.prototype); diff --git a/test/built-ins/NativeErrors/URIError/constructor.js b/test/built-ins/NativeErrors/URIError/constructor.js new file mode 100755 index 0000000000..7e7aac49e5 --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/constructor.js @@ -0,0 +1,10 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + URIError is a constructor function. +---*/ + +assert.sameValue(typeof URIError, 'function', 'typeof URIError is "function"'); diff --git a/test/built-ins/NativeErrors/URIError/instance-proto.js b/test/built-ins/NativeErrors/URIError/instance-proto.js new file mode 100755 index 0000000000..58c432f5f4 --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/instance-proto.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + The prototype of URIError instances is URIError.prototype. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.getPrototypeOf(new URIError), URIError.prototype); diff --git a/test/built-ins/NativeErrors/URIError/is-error-object.js b/test/built-ins/NativeErrors/URIError/is-error-object.js new file mode 100755 index 0000000000..dbce44e90e --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/is-error-object.js @@ -0,0 +1,14 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.4 +description: > + URIError instances have an [[ErrorData]] internal slot. +info: > + NativeError instances are ordinary objects that inherit properties + from their NativeError prototype object and have an [[ErrorData]] + internal slot whose value is undefined +---*/ + +assert.sameValue(Object.prototype.toString.call(new URIError), "[object Error]"); diff --git a/test/built-ins/NativeErrors/URIError/length.js b/test/built-ins/NativeErrors/URIError/length.js new file mode 100755 index 0000000000..4d5f631c66 --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/length.js @@ -0,0 +1,32 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + URIError.length is 1. +info: > + NativeError ( message ) + + 19.5.6.2 Properties of the NativeError Constructors + Besides the length property (whose value is 1) [...]. + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(URIError.length, 1); + +verifyNotEnumerable(URIError, "length"); +verifyNotWritable(URIError, "length"); +verifyConfigurable(URIError, "length"); diff --git a/test/built-ins/NativeErrors/URIError/name.js b/test/built-ins/NativeErrors/URIError/name.js new file mode 100755 index 0000000000..f0048b5398 --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.1 +description: > + URIError.name is "URIError". +info: > + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(URIError.name, "URIError"); + +verifyNotEnumerable(URIError, "name"); +verifyNotWritable(URIError, "name"); +verifyConfigurable(URIError, "name"); diff --git a/test/built-ins/NativeErrors/URIError/proto.js b/test/built-ins/NativeErrors/URIError/proto.js new file mode 100755 index 0000000000..e1fc2cb00f --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/proto.js @@ -0,0 +1,12 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2 +description: > + The prototype of URIError is Error. +info: > + The value of the [[Prototype]] internal slot of a NativeError constructor is the intrinsic object %Error% (19.5.1). +---*/ + +assert.sameValue(Object.getPrototypeOf(URIError), Error); diff --git a/test/built-ins/NativeErrors/URIError/prototype.js b/test/built-ins/NativeErrors/URIError/prototype.js new file mode 100755 index 0000000000..dead970454 --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/prototype.js @@ -0,0 +1,19 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.2.1 +description: > + The initial value of URIError.prototype is the URIError prototype object. +info: > + The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3). + Each NativeError constructor has a distinct prototype object. + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(URIError.prototype, Object.getPrototypeOf(new URIError)); + +verifyNotEnumerable(URIError, "prototype"); +verifyNotWritable(URIError, "prototype"); +verifyNotConfigurable(URIError, "prototype"); diff --git a/test/built-ins/NativeErrors/URIError/prototype/constructor.js b/test/built-ins/NativeErrors/URIError/prototype/constructor.js new file mode 100755 index 0000000000..6c2ab7f6e8 --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.1 +description: > + The initial value of URIError.prototype.constructor is the URIError object. +info: > + The initial value of the constructor property of the prototype for a given NativeError + constructor is the corresponding intrinsic object %NativeError% (19.5.6.1). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(URIError.prototype.constructor, URIError); + +verifyNotEnumerable(URIError.prototype, "constructor"); +verifyWritable(URIError.prototype, "constructor"); +verifyConfigurable(URIError.prototype, "constructor"); diff --git a/test/built-ins/NativeErrors/URIError/prototype/message.js b/test/built-ins/NativeErrors/URIError/prototype/message.js new file mode 100755 index 0000000000..04fa0c0984 --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/prototype/message.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.2 +description: > + The initial value of URIError.prototype.message is the empty string. +info: > + The initial value of the message property of the prototype for a given NativeError + constructor is the empty String. + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(URIError.prototype.message, ""); + +verifyNotEnumerable(URIError.prototype, "message"); +verifyWritable(URIError.prototype, "message"); +verifyConfigurable(URIError.prototype, "message"); diff --git a/test/built-ins/NativeErrors/URIError/prototype/name.js b/test/built-ins/NativeErrors/URIError/prototype/name.js new file mode 100755 index 0000000000..f3dbbd057a --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/prototype/name.js @@ -0,0 +1,24 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3.3 +description: > + The initial value of URIError.prototype.name is "URIError". +info: > + The initial value of the name property of the prototype for a given NativeError + constructor is a string consisting of the name of the constructor (the name used + instead of NativeError). + + 17 ECMAScript Standard Built-in Objects: + Every other data property described in clauses 18 through 26 and in Annex B.2 has + the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. +includes: [propertyHelper.js] +---*/ + +assert.sameValue(URIError.prototype.name, "URIError"); + +verifyNotEnumerable(URIError.prototype, "name"); +verifyWritable(URIError.prototype, "name"); +verifyConfigurable(URIError.prototype, "name"); diff --git a/test/built-ins/NativeErrors/URIError/prototype/not-error-object.js b/test/built-ins/NativeErrors/URIError/prototype/not-error-object.js new file mode 100755 index 0000000000..c693d1c22b --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/prototype/not-error-object.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + URIError.prototype is not an error object instance. +info: > + Each NativeError prototype object is an ordinary object. It is not an + Error instance and does not have an [[ErrorData]] internal slot. +---*/ + +assert.sameValue(Object.prototype.toString.call(URIError.prototype), "[object Object]"); diff --git a/test/built-ins/NativeErrors/URIError/prototype/proto.js b/test/built-ins/NativeErrors/URIError/prototype/proto.js new file mode 100755 index 0000000000..857d56b05d --- /dev/null +++ b/test/built-ins/NativeErrors/URIError/prototype/proto.js @@ -0,0 +1,13 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 19.5.6.3 +description: > + The prototype of URIError.prototype is Error.prototype. +info: > + The value of the [[Prototype]] internal slot of each NativeError prototype + object is the intrinsic object %ErrorPrototype% (19.5.3). +---*/ + +assert.sameValue(Object.getPrototypeOf(URIError.prototype), Error.prototype);