зеркало из https://github.com/mozilla/pjs.git
JavaScript Test Library - check that everything was iterated, by Jeff Walden
This commit is contained in:
Родитель
0a263351b8
Коммит
29853b15cd
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
//-----------------------------------------------------------------------------
|
||||
var bug = "(none)";
|
||||
var bug = "346582";
|
||||
var summary = "Basic support for iterable objects and for-each";
|
||||
var actual, expect;
|
||||
|
||||
|
@ -88,6 +88,9 @@ try
|
|||
throw "for-each iteration failed on vals[\"" + index + "\"]";
|
||||
index++;
|
||||
}
|
||||
if (index != keys.length)
|
||||
throw "not everything iterated! index=" + index +
|
||||
", keys.length=" + keys.length;
|
||||
|
||||
if (iterable.persistedProp != 17)
|
||||
throw "iterable.persistedProp not persisted!";
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
//-----------------------------------------------------------------------------
|
||||
var bug = "(none)";
|
||||
var bug = "346582";
|
||||
var summary = "Basic support for iterable objects and for-in";
|
||||
var actual, expect;
|
||||
|
||||
|
@ -88,6 +88,9 @@ try
|
|||
throw "for-in iteration failed on keys[\"" + index + "\"]";
|
||||
index++;
|
||||
}
|
||||
if (index != keys.length)
|
||||
throw "not everything iterated! index=" + index +
|
||||
", keys.length=" + keys.length;
|
||||
|
||||
if (iterable.persistedProp != 17)
|
||||
throw "iterable.persistedProp not persisted!";
|
||||
|
|
Загрузка…
Ссылка в новой задаче