summaryrefslogtreecommitdiff
path: root/harness/promiseHelper.js
diff options
context:
space:
mode:
Diffstat (limited to 'harness/promiseHelper.js')
-rw-r--r--harness/promiseHelper.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/harness/promiseHelper.js b/harness/promiseHelper.js
index 0bdff33e4..66ae36daf 100644
--- a/harness/promiseHelper.js
+++ b/harness/promiseHelper.js
@@ -1,4 +1,13 @@
-//-----------------------------------------------------------------------------
+// Copyright (C) 2017 Ecma International. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+description: |
+ Check that an array contains a numeric sequence starting at 1
+ and incrementing by 1 for each entry in the array. Used by
+ Promise tests to assert the order of execution in deep Promise
+ resolution pipelines.
+---*/
+
function checkSequence(arr, message) {
arr.forEach(function(e, i) {
if (e !== (i+1)) {