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;
for (var i = 0; i < expected.length; i++) {
for (var i = 0; i < subArray.length; i++) {
found = false;
for (var j = 0; j < arr.length; j++) {
if (expected[i] === arr[j]) {
for (var j = 0; j < array.length; j++) {
if (subArray[i] === array[j]) {
found = true;
break;
}
......
//Date_constants.js
// Copyright 2009 the Sputnik authors. All rights reserved.
// Copyright (C) 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
var date_1899_end = -2208988800001;
......
......@@ -6,4 +6,6 @@ function checkSequence(arr, message) {
" '" + arr.join(',') + "'");
}
});
return true;
}
File moved
......@@ -7,8 +7,7 @@ info: >
a constructor: it initialises the newly created object
es5id: 15.9.3.2_A1_T1
description: Checking types of newly created objects and it values
includes:
- Date_constants.js
includes: [dateConstants.js]
---*/
if (typeof new Date(date_1899_end) !== "object") {
......
......@@ -8,8 +8,7 @@ info: >
initial value of Date.prototype
es5id: 15.9.3.2_A2_T1
description: Checking Date.prototype property of newly constructed objects
includes:
- Date_constants.js
includes: [dateConstants.js]
---*/
var x11 = new Date(date_1899_end);
......
......@@ -7,8 +7,7 @@ info: >
is set to "Date"
es5id: 15.9.3.2_A3_T1.1
description: Test based on delete prototype.toString
includes:
- Date_constants.js
includes: [dateConstants.js]
---*/
var x1 = new Date(date_1899_end);
......
......@@ -7,8 +7,7 @@ info: >
is set to "Date"
es5id: 15.9.3.2_A3_T1.2
description: Test based on overwriting prototype.toString
includes:
- Date_constants.js
includes: [dateConstants.js]
---*/
Date.prototype.toString = Object.prototype.toString;
......
......@@ -5,7 +5,7 @@
info: Promise.all([]) is resolved immediately
es6id: 25.4.4.1_A2.2_T1
author: Sam Mikes
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
description: Promise.all([]) returns immediately
flags: [async]
---*/
......
......@@ -8,7 +8,7 @@ info: >
es6id: S25.4.4.1_A7.2_T1
author: Sam Mikes
description: Promise.all() accepts a one-element array
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -5,7 +5,7 @@
es6id: S25.4.4.1_A8.1_T1
author: Sam Mikes
description: Promise.all([p1, p2]) resolution functions are called in predictable sequence
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -7,7 +7,7 @@ info: >
es6id: S25.4.4.1_A8.1_T1
author: Sam Mikes
description: Promise.all() rejects when a promise in its array rejects
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -7,7 +7,7 @@ info: >
es6id: S25.4.4.1_A8.2_T2
author: Sam Mikes
description: Promise.all() rejects when second promise in array rejects
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -8,7 +8,7 @@ info: >
es6id: S25.4.2.1_A3.2_T2
author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -9,7 +9,7 @@ info: >
es6id: S25.4.4_A2.1_T1
author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -9,7 +9,7 @@ info: >
es6id: S25.4.4_A2.1_T2
author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -9,7 +9,7 @@ info: >
es6id: S25.4.4_A2.1_T3
author: Sam Mikes
description: Promise onResolved functions are called in predictable sequence
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -8,7 +8,7 @@ info: >
es6id: S25.4.5.3_A5.1_T1
author: Sam Mikes
description: Promise.prototype.then enqueues handler if pending
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -8,7 +8,7 @@ info: >
es6id: S25.4.5.3_A5.2_T1
author: Sam Mikes
description: Promise.prototype.then immediately queues handler if fulfilled
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
flags: [async]
---*/
......
......@@ -8,7 +8,7 @@ info: >
es6id: S25.4.5.3_A5.3_T1
author: Sam Mikes
description: Promise.prototype.then immediately queues handler if rejected
includes: [PromiseHelper.js]
includes: [promiseHelper.js]
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