mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Add assertion messages for function invocation
This commit is contained in:
parent
0d09ea91d9
commit
8c6b1320de
@ -45,4 +45,4 @@ f = (/*{ elems }*/) => {
|
||||
};
|
||||
|
||||
f(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'arrow function invoked exactly once');
|
||||
|
@ -68,4 +68,4 @@ class C {
|
||||
};
|
||||
|
||||
C.method(/*{ vals }*/).next();
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -68,4 +68,4 @@ class C {
|
||||
};
|
||||
|
||||
new C().method(/*{ vals }*/).next();
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -66,4 +66,4 @@ class C {
|
||||
};
|
||||
|
||||
C.method(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -66,4 +66,4 @@ class C {
|
||||
};
|
||||
|
||||
new C().method(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -70,4 +70,4 @@ var C = class {
|
||||
};
|
||||
|
||||
C.method(/*{ vals }*/).next();
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -70,4 +70,4 @@ var C = class {
|
||||
};
|
||||
|
||||
new C().method(/*{ vals }*/).next();
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -67,4 +67,4 @@ var C = class {
|
||||
};
|
||||
|
||||
C.method(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -67,4 +67,4 @@ var C = class {
|
||||
};
|
||||
|
||||
new C().method(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
@ -45,4 +45,4 @@ function f(/*{ elems }*/) {
|
||||
callCount = callCount + 1;
|
||||
};
|
||||
f(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
|
@ -46,4 +46,4 @@ f = function(/*{ elems }*/) {
|
||||
};
|
||||
|
||||
f(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
|
@ -44,4 +44,4 @@ function* f(/*{ elems }*/) {
|
||||
callCount = callCount + 1;
|
||||
};
|
||||
f(/*{ vals }*/).next();
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'generator function invoked exactly once');
|
||||
|
@ -46,4 +46,4 @@ f = function*(/*{ elems }*/) {
|
||||
};
|
||||
|
||||
f(/*{ vals }*/).next();
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'generator function invoked exactly once');
|
||||
|
@ -52,4 +52,4 @@ var obj = {
|
||||
};
|
||||
|
||||
obj.method(/*{ vals }*/).next();
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'generator method invoked exactly once');
|
||||
|
@ -49,4 +49,4 @@ var obj = {
|
||||
};
|
||||
|
||||
obj.method(/*{ vals }*/);
|
||||
assert.sameValue(callCount, 1);
|
||||
assert.sameValue(callCount, 1, 'method invoked exactly once');
|
||||
|
Loading…
x
Reference in New Issue
Block a user