summaryrefslogtreecommitdiff
path: root/test/built-ins/Boolean/prototype
diff options
context:
space:
mode:
authorMike Pennisi <mike@mikepennisi.com>2015-06-09 12:08:02 -0400
committerMike Pennisi <mike@mikepennisi.com>2015-06-09 19:44:25 -0400
commit92890e6723b2a605fe78129774d3875e30048ffa (patch)
tree1213e30b5d3ad54e9344a1dba1c69f48de82e34a /test/built-ins/Boolean/prototype
parent32edc4873e864753a998db42feb45ccb55db847b (diff)
downloadqtdeclarative-testsuites-92890e6723b2a605fe78129774d3875e30048ffa.tar.gz
Remove `$FAIL` function
This function is equivalent to `$ERROR` (which is automatically included in test environments). Remove the harness file that defines the function, remove references to the file from test `includes` lists, and update scripts to instead invoke the `$ERROR` function.
Diffstat (limited to 'test/built-ins/Boolean/prototype')
-rw-r--r--test/built-ins/Boolean/prototype/S15.6.3.1_A1.js3
-rw-r--r--test/built-ins/Boolean/prototype/S15.6.4_A1.js3
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js3
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js3
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js3
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js3
6 files changed, 6 insertions, 12 deletions
diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js
index 9daeede97..f0858ab33 100644
--- a/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js
+++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js
@@ -7,7 +7,6 @@ info: >
prototype object
es5id: 15.6.3.1_A1
description: Checking Boolean.prototype property
-includes: [$FAIL.js]
---*/
//CHECK#1
@@ -18,7 +17,7 @@ if (typeof Boolean.prototype !== "object") {
//CHECK#2
try {
(Boolean.prototype != false);
- $FAIL('#2: "(Boolean.prototype != false);" lead to throwing exception. Actual: '+(Boolean.prototype != false));
+ $ERROR('#2: "(Boolean.prototype != false);" lead to throwing exception. Actual: '+(Boolean.prototype != false));
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#2.1: "(Boolean.prototype != false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e);
diff --git a/test/built-ins/Boolean/prototype/S15.6.4_A1.js b/test/built-ins/Boolean/prototype/S15.6.4_A1.js
index 87f5ff017..10abf744e 100644
--- a/test/built-ins/Boolean/prototype/S15.6.4_A1.js
+++ b/test/built-ins/Boolean/prototype/S15.6.4_A1.js
@@ -7,7 +7,6 @@ info: >
(its [[Class]] is "Object")
es5id: 15.6.4_A1
description: Checking type and value of Boolean.prototype
-includes: [$FAIL.js]
---*/
//CHECK#1
@@ -18,7 +17,7 @@ if (typeof Boolean.prototype !== "object") {
//CHECK#2
try {
(Boolean.prototype != false);
- $FAIL('#2: "(Boolean.prototype != false);" lead to throwing exception. Actual: '+(Boolean.prototype != false));
+ $ERROR('#2: "(Boolean.prototype != false);" lead to throwing exception. Actual: '+(Boolean.prototype != false));
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#2.1: "(Boolean.prototype != false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e);
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js
index ecf174bfd..c07ecbd6e 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js
@@ -8,13 +8,12 @@ info: >
"false" is returned
es5id: 15.6.4.2_A1_T1
description: no arguments
-includes: [$FAIL.js]
---*/
//CHECK#1
try {
(Boolean.prototype.toString() !== "false");
- $FAIL('#1: "(Boolean.prototype.toString() !== "false");" lead to throwing exception. Actual: '+(Boolean.prototype.toString() !== "false"));
+ $ERROR('#1: "(Boolean.prototype.toString() !== "false");" lead to throwing exception. Actual: '+(Boolean.prototype.toString() !== "false"));
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1.1: "(Boolean.prototype.toString() !== "false")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e);
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js
index 2fcc7e385..197723a1e 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js
@@ -8,13 +8,12 @@ info: >
"false" is returned
es5id: 15.6.4.2_A1_T2
description: with some argument
-includes: [$FAIL.js]
---*/
//CHECK#1
try {
(Boolean.prototype.toString(true) !== "false");
- $FAIL('#1: "(Boolean.prototype.toString(true) !== "false");" lead to throwing exception. Actual: '+(Boolean.prototype.toString(true) !== "false"));
+ $ERROR('#1: "(Boolean.prototype.toString(true) !== "false");" lead to throwing exception. Actual: '+(Boolean.prototype.toString(true) !== "false"));
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1.1: "(Boolean.prototype.toString(true) !== "false")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e);
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js
index 6d75e1c21..65d1b21bb 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js
@@ -5,13 +5,12 @@
info: Boolean.prototype.valueOf() returns this boolean value
es5id: 15.6.4.3_A1_T1
description: no arguments
-includes: [$FAIL.js]
---*/
//CHECK#1
try {
(Boolean.prototype.valueOf() !== false);
- $FAIL('#1: "(Boolean.prototype.valueOf() !== false);" lead to throwing exception. Actual: '+(Boolean.prototype.valueOf() !== false));
+ $ERROR('#1: "(Boolean.prototype.valueOf() !== false);" lead to throwing exception. Actual: '+(Boolean.prototype.valueOf() !== false));
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1.1: "(Boolean.prototype.valueOf() !== false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e);
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js
index 1e059bcaf..8d803efd6 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js
@@ -5,13 +5,12 @@
info: Boolean.prototype.valueOf() returns this boolean value
es5id: 15.6.4.3_A1_T2
description: calling with argument
-includes: [$FAIL.js]
---*/
//CHECK#1
try {
(Boolean.prototype.valueOf(true) !== false);
- $FAIL('#1: "(Boolean.prototype.valueOf(true) !== false);" lead to throwing exception. Actual: '+(Boolean.prototype.valueOf(true) !== false));
+ $ERROR('#1: "(Boolean.prototype.valueOf(true) !== false);" lead to throwing exception. Actual: '+(Boolean.prototype.valueOf(true) !== false));
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1.1: "(Boolean.prototype.valueOf(true) !== false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e);