| Index: test/inspector/runtime/internal-properties.js
|
| diff --git a/test/inspector/runtime/internal-properties.js b/test/inspector/runtime/internal-properties.js
|
| index dd7581654d805fbd0f1e272b8f3bf55a60842ef5..86fe96ab1c08cebfd9933f761e10636ad2c55b16 100644
|
| --- a/test/inspector/runtime/internal-properties.js
|
| +++ b/test/inspector/runtime/internal-properties.js
|
| @@ -4,6 +4,14 @@
|
|
|
| print('Checks internal properties in Runtime.getProperties output');
|
|
|
| +InspectorTest.addScript(`
|
| +function* foo() {
|
| + yield 1;
|
| +}
|
| +var gen1 = foo();
|
| +var gen2 = foo();
|
| +//# sourceURL=test.js`, 7, 26);
|
| +
|
| Protocol.Runtime.enable();
|
| Protocol.Debugger.enable();
|
|
|
| @@ -31,7 +39,17 @@ InspectorTest.runTestSuite([
|
| },
|
|
|
| function generatorObject(next) {
|
| - checkExpression('(function* foo() { yield 1 })()')
|
| + checkExpression('gen1')
|
| + .then(() => checkExpression('gen1.next();gen1'))
|
| + .then(() => checkExpression('gen1.next();gen1'))
|
| + .then(next);
|
| + },
|
| +
|
| + function generatorObjectDebuggerDisabled(next) {
|
| + Protocol.Debugger.disable()
|
| + .then(() => checkExpression('gen2'))
|
| + .then(() => checkExpression('gen2.next();gen2'))
|
| + .then(() => checkExpression('gen2.next();gen2'))
|
| .then(next);
|
| },
|
|
|
|
|