Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(952)

Unified Diff: test/inspector/runtime/internal-properties.js

Issue 2678143002: [inspector] introduced debug::GeneratorObject (Closed)
Patch Set: addressed comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/v8-debugger.cc ('k') | test/inspector/runtime/internal-properties-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
},
« no previous file with comments | « src/inspector/v8-debugger.cc ('k') | test/inspector/runtime/internal-properties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698