summaryrefslogtreecommitdiff
path: root/test/built-ins/Error
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-13 17:56:55 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-13 17:57:23 +0200
commit4ec97779fdea46207c589dbe36f41785343a61a8 (patch)
tree031e2fc65c79fd3755cf4e61f0abee44e035ac3f /test/built-ins/Error
parent1b14708467b4cab8055effad884071123637e475 (diff)
downloadqtdeclarative-testsuites-4ec97779fdea46207c589dbe36f41785343a61a8.tar.gz
Replace runTestCase with assert helpers, rest [test/built-ins]
Diffstat (limited to 'test/built-ins/Error')
-rw-r--r--test/built-ins/Error/prototype/message/15.11.4.3-1.js9
-rw-r--r--test/built-ins/Error/prototype/name/15.11.4.2-1.js9
2 files changed, 2 insertions, 16 deletions
diff --git a/test/built-ins/Error/prototype/message/15.11.4.3-1.js b/test/built-ins/Error/prototype/message/15.11.4.3-1.js
index 862334e05..6860135a9 100644
--- a/test/built-ins/Error/prototype/message/15.11.4.3-1.js
+++ b/test/built-ins/Error/prototype/message/15.11.4.3-1.js
@@ -4,15 +4,8 @@
/*---
es5id: 15.11.4.3-1
description: Error.prototype.message is not enumerable.
-includes: [runTestCase.js]
---*/
-function testcase() {
for (var i in Error.prototype) {
- if (i==="message") {
- return false;
- }
+ assert.notSameValue(i, "message", 'i');
}
- return true;
-}
-runTestCase(testcase);
diff --git a/test/built-ins/Error/prototype/name/15.11.4.2-1.js b/test/built-ins/Error/prototype/name/15.11.4.2-1.js
index f8aeabc75..7df0656c1 100644
--- a/test/built-ins/Error/prototype/name/15.11.4.2-1.js
+++ b/test/built-ins/Error/prototype/name/15.11.4.2-1.js
@@ -4,15 +4,8 @@
/*---
es5id: 15.11.4.2-1
description: Error.prototype.name is not enumerable.
-includes: [runTestCase.js]
---*/
-function testcase() {
for (var i in Error.prototype) {
- if (i==="name") {
- return false;
- }
+ assert.notSameValue(i, "name", 'i');
}
- return true;
-}
-runTestCase(testcase);