Browse Source

Trivial testcase cleanups

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
82a0039bb5
  1. 3
      ecmascript-testcases/test-bi-array-constructor.js
  2. 2
      ecmascript-testcases/test-bi-array-proto-pop.js
  3. 4
      ecmascript-testcases/test-bi-array-proto-push.js
  4. 2
      ecmascript-testcases/test-bi-array-proto-reverse.js
  5. 4
      ecmascript-testcases/test-bi-array-proto-shift.js
  6. 4
      ecmascript-testcases/test-bi-array-proto-slice.js

3
ecmascript-testcases/test-bi-array-constructor.js

@ -1,4 +1,3 @@
// FIXME: something like this to utils; perhaps Test.run()
function run(f) {
try {
f();
@ -31,7 +30,6 @@ object 20 [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
function asFunctionTest() {
function p(x) {
// FIXME: JSON
print(typeof x, x.length, JSON.stringify(x));
}
@ -93,7 +91,6 @@ object 20 [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
function asConstructorTest() {
function p(x) {
// FIXME: JSON
print(typeof x, x.length, JSON.stringify(x));
}

2
ecmascript-testcases/test-bi-array-proto-pop.js

@ -1,4 +1,4 @@
// FIXME: these should be shared utils for Array testing
// XXX: these should be shared utils for Array testing
function dumpValue(v) {
var i, n, n_clipped;

4
ecmascript-testcases/test-bi-array-proto-push.js

@ -1,8 +1,8 @@
// FIXME: these should be shared utils for Array testing
// XXX: these should be shared utils for Array testing
function printDesc(obj, key) {
var pd = Object.getOwnPropertyDescriptor(obj, key);
print(JSON.stringify(pd)); // FIXME
print(JSON.stringify(pd));
}
function dumpValue(v) {

2
ecmascript-testcases/test-bi-array-proto-reverse.js

@ -1,4 +1,4 @@
// FIXME: shared test utils
// XXX: shared test utils
function formatValue(v) {
if (typeof v === 'function') {

4
ecmascript-testcases/test-bi-array-proto-shift.js

@ -1,4 +1,4 @@
// FIXME: util
// XXX: util
function dumpValue(v) {
var i, n;
@ -909,6 +909,6 @@ try {
print(e);
}
/* FIXME: enumeration order effects, when sparse: deleting and adding properties
/* XXX: enumeration order effects, when sparse: deleting and adding properties
* changes their ordering on each shift().
*/

4
ecmascript-testcases/test-bi-array-proto-slice.js

@ -1,4 +1,4 @@
// FIXME: util
// XXX: util
function printDesc(obj, key) {
var pd = Object.getOwnPropertyDescriptor(obj, key);
if (!pd) {
@ -14,7 +14,7 @@ function printDesc(obj, key) {
'set=' + typeof pd.set);
}
// FIXME: util
// XXX: util
function dumpValue(v) {
var i, n;
var tmp = [];

Loading…
Cancel
Save