7bbea08f66
This refactoring makes it easier to write advanced tests and gives full control over what's happening to the test code. It also forces description for every test. BUG=none Review-Url: https://codereview.chromium.org/2891213002 Cr-Commit-Position: refs/heads/master@{#45412}
36 lines
425 B
Plaintext
36 lines
425 B
Plaintext
Embedding script 'function c(f, ...args) { return f(...args); }'
|
|
Tests that stepping works on snapshotted function
|
|
paused
|
|
}
|
|
#debugger;
|
|
c(f, 2);
|
|
|
|
paused
|
|
debugger;
|
|
#c(f, 2);
|
|
}
|
|
|
|
paused
|
|
function c(f, ...args) { #return f(...args); }
|
|
|
|
paused
|
|
function f(x) {
|
|
#return x * 2;
|
|
}
|
|
|
|
paused
|
|
return x * 2;
|
|
#}
|
|
debugger;
|
|
|
|
paused
|
|
function c(f, ...args) { return f(...args); #}
|
|
|
|
paused
|
|
c(f, 2);
|
|
#}
|
|
|
|
paused
|
|
test(#)
|
|
|