summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-06 18:33:32 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-06 18:33:32 +0200
commit31f027dc037894949d9a7d83b3017298fd58180e (patch)
tree6e0b6ba900b549235a023a903fa53840f2605b0d /test
parent3c3e0a6adb097b752f2f9cb44ae4e50211f5ca88 (diff)
downloadqtdeclarative-testsuites-31f027dc037894949d9a7d83b3017298fd58180e.tar.gz
Replace runTestCase with assert helpers [test/language/types]
Diffstat (limited to 'test')
-rw-r--r--test/language/types/reference/8.7.2-2-s.js7
-rw-r--r--test/language/types/reference/8.7.2-3-1-s.js5
-rw-r--r--test/language/types/reference/8.7.2-6-s.js6
-rw-r--r--test/language/types/reference/8.7.2-7-s.js7
-rw-r--r--test/language/types/reference/8.7.2-8-s.js6
5 files changed, 6 insertions, 25 deletions
diff --git a/test/language/types/reference/8.7.2-2-s.js b/test/language/types/reference/8.7.2-2-s.js
index 89fef04bd..19da2c1f1 100644
--- a/test/language/types/reference/8.7.2-2-s.js
+++ b/test/language/types/reference/8.7.2-2-s.js
@@ -6,11 +6,8 @@ es5id: 8.7.2-2-s
description: >
ReferenceError isn't thrown if LeftHandSide evaluates to a resolvable
Reference
-includes: [runTestCase.js]
---*/
-function testcase() {
var b = 11;
- return b === 11;
- }
-runTestCase(testcase);
+
+assert.sameValue(b, 11, 'b');
diff --git a/test/language/types/reference/8.7.2-3-1-s.js b/test/language/types/reference/8.7.2-3-1-s.js
index ca9f96c78..e6091d384 100644
--- a/test/language/types/reference/8.7.2-3-1-s.js
+++ b/test/language/types/reference/8.7.2-3-1-s.js
@@ -4,11 +4,6 @@
/*---
es5id: 8.7.2-3-1-s
description: eval - a property named 'eval' is permitted
-includes: [runTestCase.js]
---*/
-function testcase() {
var o = { eval: 42};
- return true;
- }
-runTestCase(testcase);
diff --git a/test/language/types/reference/8.7.2-6-s.js b/test/language/types/reference/8.7.2-6-s.js
index d0332303d..8822a11fa 100644
--- a/test/language/types/reference/8.7.2-6-s.js
+++ b/test/language/types/reference/8.7.2-6-s.js
@@ -6,10 +6,8 @@ es5id: 8.7.2-6-s
description: >
TypeError isn't thrown if LeftHandSide is a reference to a writable data
property
-includes: [runTestCase.js]
---*/
-function testcase() {
var _8_7_2_6 = {};
Object.defineProperty(_8_7_2_6, "b", {
writable: true
@@ -17,6 +15,4 @@ function testcase() {
_8_7_2_6.b = 11;
- return _8_7_2_6.b === 11;
- }
-runTestCase(testcase);
+assert.sameValue(_8_7_2_6.b, 11, '_8_7_2_6.b');
diff --git a/test/language/types/reference/8.7.2-7-s.js b/test/language/types/reference/8.7.2-7-s.js
index d4c31f6f3..848b28f98 100644
--- a/test/language/types/reference/8.7.2-7-s.js
+++ b/test/language/types/reference/8.7.2-7-s.js
@@ -6,10 +6,8 @@ es5id: 8.7.2-7-s
description: >
TypeError isn't thrown if LeftHandSide is a reference to an accessor
property with setter
-includes: [runTestCase.js]
---*/
-function testcase() {
var _8_7_2_7 = {};
var _8_7_2_7_bValue = 1;
Object.defineProperty(_8_7_2_7, "b", {
@@ -18,6 +16,5 @@ function testcase() {
});
_8_7_2_7.b = 11;
- return _8_7_2_7.b === 11;
- }
-runTestCase(testcase);
+
+assert.sameValue(_8_7_2_7.b, 11, '_8_7_2_7.b');
diff --git a/test/language/types/reference/8.7.2-8-s.js b/test/language/types/reference/8.7.2-8-s.js
index 8f022c4ab..8408e3aa2 100644
--- a/test/language/types/reference/8.7.2-8-s.js
+++ b/test/language/types/reference/8.7.2-8-s.js
@@ -6,14 +6,10 @@ es5id: 8.7.2-8-s
description: >
TypeError isn't thrown if LeftHandSide is a reference to a property of an
extensible object
-includes: [runTestCase.js]
---*/
-function testcase() {
var _8_7_2_8 = {};
_8_7_2_8.b = 11;
- return _8_7_2_8.b === 11;
- }
-runTestCase(testcase);
+assert.sameValue(_8_7_2_8.b, 11, '_8_7_2_8.b');