Skip to content
Snippets Groups Projects
Commit bcea4333 authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

Merge pull request #1070 from rwaldron/add-missing-harness-tests

Add missing harness tests
parents 53842533 13dfae4d
No related branches found
No related tags found
No related merge requests found
Showing
with 30 additions and 27 deletions
//----------------------------------------------------------------------------- /**
function arrayContains(arr, expected) { * Verify that a subArray is contained within an array.
*
* @param {Array} array
* @param {Array} subArray
*/
function arrayContains(array, subArray) {
var found; var found;
for (var i = 0; i < expected.length; i++) { for (var i = 0; i < subArray.length; i++) {
found = false; found = false;
for (var j = 0; j < arr.length; j++) { for (var j = 0; j < array.length; j++) {
if (expected[i] === arr[j]) { if (subArray[i] === array[j]) {
found = true; found = true;
break; break;
} }
......
//Date_constants.js // Copyright (C) 2009 the Sputnik authors. All rights reserved.
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
var date_1899_end = -2208988800001; var date_1899_end = -2208988800001;
......
...@@ -6,4 +6,6 @@ function checkSequence(arr, message) { ...@@ -6,4 +6,6 @@ function checkSequence(arr, message) {
" '" + arr.join(',') + "'"); " '" + arr.join(',') + "'");
} }
}); });
return true;
} }
File moved
...@@ -7,8 +7,7 @@ info: > ...@@ -7,8 +7,7 @@ info: >
a constructor: it initialises the newly created object a constructor: it initialises the newly created object
es5id: 15.9.3.2_A1_T1 es5id: 15.9.3.2_A1_T1
description: Checking types of newly created objects and it values description: Checking types of newly created objects and it values
includes: includes: [dateConstants.js]
- Date_constants.js
---*/ ---*/
if (typeof new Date(date_1899_end) !== "object") { if (typeof new Date(date_1899_end) !== "object") {
......
...@@ -8,8 +8,7 @@ info: > ...@@ -8,8 +8,7 @@ info: >
initial value of Date.prototype initial value of Date.prototype
es5id: 15.9.3.2_A2_T1 es5id: 15.9.3.2_A2_T1
description: Checking Date.prototype property of newly constructed objects description: Checking Date.prototype property of newly constructed objects
includes: includes: [dateConstants.js]
- Date_constants.js
---*/ ---*/
var x11 = new Date(date_1899_end); var x11 = new Date(date_1899_end);
......
...@@ -7,8 +7,7 @@ info: > ...@@ -7,8 +7,7 @@ info: >
is set to "Date" is set to "Date"
es5id: 15.9.3.2_A3_T1.1 es5id: 15.9.3.2_A3_T1.1
description: Test based on delete prototype.toString description: Test based on delete prototype.toString
includes: includes: [dateConstants.js]
- Date_constants.js
---*/ ---*/
var x1 = new Date(date_1899_end); var x1 = new Date(date_1899_end);
......
...@@ -7,8 +7,7 @@ info: > ...@@ -7,8 +7,7 @@ info: >
is set to "Date" is set to "Date"
es5id: 15.9.3.2_A3_T1.2 es5id: 15.9.3.2_A3_T1.2
description: Test based on overwriting prototype.toString description: Test based on overwriting prototype.toString
includes: includes: [dateConstants.js]
- Date_constants.js
---*/ ---*/
Date.prototype.toString = Object.prototype.toString; Date.prototype.toString = Object.prototype.toString;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
info: Promise.all([]) is resolved immediately info: Promise.all([]) is resolved immediately
es6id: 25.4.4.1_A2.2_T1 es6id: 25.4.4.1_A2.2_T1
author: Sam Mikes author: Sam Mikes
includes: [PromiseHelper.js] includes: [promiseHelper.js]
description: Promise.all([]) returns immediately description: Promise.all([]) returns immediately
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -8,7 +8,7 @@ info: > ...@@ -8,7 +8,7 @@ info: >
es6id: S25.4.4.1_A7.2_T1 es6id: S25.4.4.1_A7.2_T1
author: Sam Mikes author: Sam Mikes
description: Promise.all() accepts a one-element array description: Promise.all() accepts a one-element array
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
es6id: S25.4.4.1_A8.1_T1 es6id: S25.4.4.1_A8.1_T1
author: Sam Mikes author: Sam Mikes
description: Promise.all([p1, p2]) resolution functions are called in predictable sequence description: Promise.all([p1, p2]) resolution functions are called in predictable sequence
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -7,7 +7,7 @@ info: > ...@@ -7,7 +7,7 @@ info: >
es6id: S25.4.4.1_A8.1_T1 es6id: S25.4.4.1_A8.1_T1
author: Sam Mikes author: Sam Mikes
description: Promise.all() rejects when a promise in its array rejects description: Promise.all() rejects when a promise in its array rejects
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -7,7 +7,7 @@ info: > ...@@ -7,7 +7,7 @@ info: >
es6id: S25.4.4.1_A8.2_T2 es6id: S25.4.4.1_A8.2_T2
author: Sam Mikes author: Sam Mikes
description: Promise.all() rejects when second promise in array rejects description: Promise.all() rejects when second promise in array rejects
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -8,7 +8,7 @@ info: > ...@@ -8,7 +8,7 @@ info: >
es6id: S25.4.2.1_A3.2_T2 es6id: S25.4.2.1_A3.2_T2
author: Sam Mikes author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -9,7 +9,7 @@ info: > ...@@ -9,7 +9,7 @@ info: >
es6id: S25.4.4_A2.1_T1 es6id: S25.4.4_A2.1_T1
author: Sam Mikes author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -9,7 +9,7 @@ info: > ...@@ -9,7 +9,7 @@ info: >
es6id: S25.4.4_A2.1_T2 es6id: S25.4.4_A2.1_T2
author: Sam Mikes author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -9,7 +9,7 @@ info: > ...@@ -9,7 +9,7 @@ info: >
es6id: S25.4.4_A2.1_T3 es6id: S25.4.4_A2.1_T3
author: Sam Mikes author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -8,7 +8,7 @@ info: > ...@@ -8,7 +8,7 @@ info: >
es6id: S25.4.5.3_A5.1_T1 es6id: S25.4.5.3_A5.1_T1
author: Sam Mikes author: Sam Mikes
description: Promise.prototype.then enqueues handler if pending description: Promise.prototype.then enqueues handler if pending
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -8,7 +8,7 @@ info: > ...@@ -8,7 +8,7 @@ info: >
es6id: S25.4.5.3_A5.2_T1 es6id: S25.4.5.3_A5.2_T1
author: Sam Mikes author: Sam Mikes
description: Promise.prototype.then immediately queues handler if fulfilled description: Promise.prototype.then immediately queues handler if fulfilled
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
...@@ -8,7 +8,7 @@ info: > ...@@ -8,7 +8,7 @@ info: >
es6id: S25.4.5.3_A5.3_T1 es6id: S25.4.5.3_A5.3_T1
author: Sam Mikes author: Sam Mikes
description: Promise.prototype.then immediately queues handler if rejected description: Promise.prototype.then immediately queues handler if rejected
includes: [PromiseHelper.js] includes: [promiseHelper.js]
flags: [async] flags: [async]
---*/ ---*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment