summaryrefslogtreecommitdiff
path: root/test/built-ins/Boolean
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-04-29 17:37:09 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-04-29 17:37:09 +0200
commit9cb5292c71745baf7de1036fac7f8dd7395e9e95 (patch)
treeecd755bae77900fa1ccc5883bbf976bc2c0a7846 /test/built-ins/Boolean
parent87fd4e56993a93b46f9c72809ebe161b5b9f6fb6 (diff)
downloadqtdeclarative-testsuites-9cb5292c71745baf7de1036fac7f8dd7395e9e95.tar.gz
Fix strict mode errors in built-ins/Boolean
Add missing "var" declarations and noStrict flags. Part of issue #35.
Diffstat (limited to 'test/built-ins/Boolean')
-rw-r--r--test/built-ins/Boolean/S15.6.1.1_A1_T5.js2
-rw-r--r--test/built-ins/Boolean/prototype/S15.6.3.1_A2.js1
-rw-r--r--test/built-ins/Boolean/prototype/S15.6.3.1_A3.js1
3 files changed, 4 insertions, 0 deletions
diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js
index 2114e1995..e0fd8d8c7 100644
--- a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js
+++ b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js
@@ -9,6 +9,8 @@ es5id: 15.6.1.1_A1_T5
description: Used various assigning values to any variable as argument
---*/
+var x;
+
//CHECK#1
if( typeof Boolean(x=0) !== "boolean" ) {
$ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "'+typeof Boolean(x=0)+'"');
diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js
index f276ec5cc..c834d39fd 100644
--- a/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js
+++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js
@@ -5,6 +5,7 @@
info: Boolean.prototype has the attribute ReadOnly
es5id: 15.6.3.1_A2
description: Checking if varying the Boolean.prototype property fails
+flags: [noStrict]
---*/
// CHECK#1
diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js
index 6163f75ec..3decf9d44 100644
--- a/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js
+++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js
@@ -5,6 +5,7 @@
info: Boolean.prototype has the attribute DontDelete
es5id: 15.6.3.1_A3
description: Checking if deleting the Boolean.prototype property fails
+flags: [noStrict]
---*/
// CHECK#1