diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-13 17:56:55 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-13 17:57:23 +0200 |
commit | 4ec97779fdea46207c589dbe36f41785343a61a8 (patch) | |
tree | 031e2fc65c79fd3755cf4e61f0abee44e035ac3f /test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js | |
parent | 1b14708467b4cab8055effad884071123637e475 (diff) | |
download | qtdeclarative-testsuites-4ec97779fdea46207c589dbe36f41785343a61a8.tar.gz |
Replace runTestCase with assert helpers, rest [test/built-ins]
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js index 41d62527c..ec885dadd 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js @@ -7,15 +7,9 @@ info: > and hence NaNs could be found using indexOf * es5id: 15.4.4.14-9-10 description: Array.prototype.indexOf must return correct index (NaN) -includes: [runTestCase.js] ---*/ -function testcase() { var _NaN = NaN; var a = new Array("NaN",undefined,0,false,null,{toString:function (){return NaN}},"false",_NaN,NaN); - if (a.indexOf(NaN) === -1) // NaN is equal to nothing, including itself. - { - return true; - } - } -runTestCase(testcase); + +assert.sameValue(a.indexOf(NaN), -1, 'NaN is equal to nothing, including itself.'); |