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

Unified Diff: test/inspector/debugger/for-of-loops-expected.txt

Issue 2893313002: [inspector] removed call break location from for-of loop (Closed)
Patch Set: removed each_keyword_pos Created 3 years, 7 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
Index: test/inspector/debugger/for-of-loops-expected.txt
diff --git a/test/inspector/debugger/for-of-loops-expected.txt b/test/inspector/debugger/for-of-loops-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fdbfbb6135438bbc1ad89f7c98ccf8818b5d8a02
--- /dev/null
+++ b/test/inspector/debugger/for-of-loops-expected.txt
@@ -0,0 +1,395 @@
+Tests breakable locations in for-of loops.
+
+Running test: testBreakLocations
+
+function testFunction() {
+ var obj = |_|{a : 1};
+ var arr = |_|[1];
+ var all = |_|[];
+ for (var |_|k in |_|arr) { |_|all.|C|push(k); }
+ for (var |_|k of |_|arr) { |_|all.|C|push(k); }
+ for (var |_|k in |_|obj) { |_|all.|C|push(k); }
+ for (let |_|k in |_|arr) { |_|all.|C|push(k); }
+ for (let |_|k of |_|arr) { |_|all.|C|push(k); }
+ for (let |_|k in |_|obj) { |_|all.|C|push(k); }
+
+ var iterable = |_|{
+ [Symbol.iterator]() {
+ |_|return {
+ i: 0,
+ next() {
+ |_|if (this.i < 1) {
+ |_|return { value: this.i++, done: false };
+ }
+ |_|return { value: undefined, done: true };
+ |R|}
+ };
+ |R|}
+ };
+ for (var |_|k of |_|iterable) { |_|all.|C|push(k); }
+ |_|iterable.i = 0;
+ for (let |_|k of |_|iterable) { |_|all.|C|push(k); }
+|R|}
+
+
+Running test: testStepInto
+(anonymous) (expr.js:0:0)
+
+
+testFunction (test.js:2:12)
+(anonymous) (expr.js:0:0)
+function testFunction() {
+ var obj = #{a : 1};
+ var arr = [1];
+
+testFunction (test.js:3:12)
+(anonymous) (expr.js:0:0)
+ var obj = {a : 1};
+ var arr = #[1];
+ var all = [];
+
+testFunction (test.js:4:12)
+(anonymous) (expr.js:0:0)
+ var arr = [1];
+ var all = #[];
+ for (var k in arr) { all.push(k); }
+
+testFunction (test.js:5:16)
+(anonymous) (expr.js:0:0)
+ var all = [];
+ for (var k in #arr) { all.push(k); }
+ for (var k of arr) { all.push(k); }
+
+testFunction (test.js:5:11)
+(anonymous) (expr.js:0:0)
+ var all = [];
+ for (var #k in arr) { all.push(k); }
+ for (var k of arr) { all.push(k); }
+
+testFunction (test.js:5:23)
+(anonymous) (expr.js:0:0)
+ var all = [];
+ for (var k in arr) { #all.push(k); }
+ for (var k of arr) { all.push(k); }
+
+testFunction (test.js:5:11)
+(anonymous) (expr.js:0:0)
+ var all = [];
+ for (var #k in arr) { all.push(k); }
+ for (var k of arr) { all.push(k); }
+
+testFunction (test.js:6:16)
+(anonymous) (expr.js:0:0)
+ for (var k in arr) { all.push(k); }
+ for (var k of #arr) { all.push(k); }
+ for (var k in obj) { all.push(k); }
+
+testFunction (test.js:6:11)
+(anonymous) (expr.js:0:0)
+ for (var k in arr) { all.push(k); }
+ for (var #k of arr) { all.push(k); }
+ for (var k in obj) { all.push(k); }
+
+testFunction (test.js:6:23)
+(anonymous) (expr.js:0:0)
+ for (var k in arr) { all.push(k); }
+ for (var k of arr) { #all.push(k); }
+ for (var k in obj) { all.push(k); }
+
+testFunction (test.js:6:11)
+(anonymous) (expr.js:0:0)
+ for (var k in arr) { all.push(k); }
+ for (var #k of arr) { all.push(k); }
+ for (var k in obj) { all.push(k); }
+
+testFunction (test.js:7:16)
+(anonymous) (expr.js:0:0)
+ for (var k of arr) { all.push(k); }
+ for (var k in #obj) { all.push(k); }
+ for (let k in arr) { all.push(k); }
+
+testFunction (test.js:7:11)
+(anonymous) (expr.js:0:0)
+ for (var k of arr) { all.push(k); }
+ for (var #k in obj) { all.push(k); }
+ for (let k in arr) { all.push(k); }
+
+testFunction (test.js:7:23)
+(anonymous) (expr.js:0:0)
+ for (var k of arr) { all.push(k); }
+ for (var k in obj) { #all.push(k); }
+ for (let k in arr) { all.push(k); }
+
+testFunction (test.js:7:11)
+(anonymous) (expr.js:0:0)
+ for (var k of arr) { all.push(k); }
+ for (var #k in obj) { all.push(k); }
+ for (let k in arr) { all.push(k); }
+
+testFunction (test.js:8:16)
+(anonymous) (expr.js:0:0)
+ for (var k in obj) { all.push(k); }
+ for (let k in #arr) { all.push(k); }
+ for (let k of arr) { all.push(k); }
+
+testFunction (test.js:8:11)
+(anonymous) (expr.js:0:0)
+ for (var k in obj) { all.push(k); }
+ for (let #k in arr) { all.push(k); }
+ for (let k of arr) { all.push(k); }
+
+testFunction (test.js:8:23)
+(anonymous) (expr.js:0:0)
+ for (var k in obj) { all.push(k); }
+ for (let k in arr) { #all.push(k); }
+ for (let k of arr) { all.push(k); }
+
+testFunction (test.js:8:11)
+(anonymous) (expr.js:0:0)
+ for (var k in obj) { all.push(k); }
+ for (let #k in arr) { all.push(k); }
+ for (let k of arr) { all.push(k); }
+
+testFunction (test.js:9:16)
+(anonymous) (expr.js:0:0)
+ for (let k in arr) { all.push(k); }
+ for (let k of #arr) { all.push(k); }
+ for (let k in obj) { all.push(k); }
+
+testFunction (test.js:9:11)
+(anonymous) (expr.js:0:0)
+ for (let k in arr) { all.push(k); }
+ for (let #k of arr) { all.push(k); }
+ for (let k in obj) { all.push(k); }
+
+testFunction (test.js:9:23)
+(anonymous) (expr.js:0:0)
+ for (let k in arr) { all.push(k); }
+ for (let k of arr) { #all.push(k); }
+ for (let k in obj) { all.push(k); }
+
+testFunction (test.js:9:11)
+(anonymous) (expr.js:0:0)
+ for (let k in arr) { all.push(k); }
+ for (let #k of arr) { all.push(k); }
+ for (let k in obj) { all.push(k); }
+
+testFunction (test.js:10:16)
+(anonymous) (expr.js:0:0)
+ for (let k of arr) { all.push(k); }
+ for (let k in #obj) { all.push(k); }
+
+
+testFunction (test.js:10:11)
+(anonymous) (expr.js:0:0)
+ for (let k of arr) { all.push(k); }
+ for (let #k in obj) { all.push(k); }
+
+
+testFunction (test.js:10:23)
+(anonymous) (expr.js:0:0)
+ for (let k of arr) { all.push(k); }
+ for (let k in obj) { #all.push(k); }
+
+
+testFunction (test.js:10:11)
+(anonymous) (expr.js:0:0)
+ for (let k of arr) { all.push(k); }
+ for (let #k in obj) { all.push(k); }
+
+
+testFunction (test.js:12:17)
+(anonymous) (expr.js:0:0)
+
+ var iterable = #{
+ [Symbol.iterator]() {
+
+testFunction (test.js:25:16)
+(anonymous) (expr.js:0:0)
+ };
+ for (var k of #iterable) { all.push(k); }
+ iterable.i = 0;
+
+[Symbol.iterator] (test.js:14:6)
+testFunction (test.js:25:16)
+(anonymous) (expr.js:0:0)
+ [Symbol.iterator]() {
+ #return {
+ i: 0,
+
+[Symbol.iterator] (test.js:23:4)
+testFunction (test.js:25:16)
+(anonymous) (expr.js:0:0)
+ };
+ #}
+ };
+
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ };
+ for (var #k of iterable) { all.push(k); }
+ iterable.i = 0;
+
+next (test.js:17:10)
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ next() {
+ #if (this.i < 1) {
+ return { value: this.i++, done: false };
+
+next (test.js:18:12)
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ if (this.i < 1) {
+ #return { value: this.i++, done: false };
+ }
+
+next (test.js:21:8)
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ return { value: undefined, done: true };
+ #}
+ };
+
+testFunction (test.js:25:28)
+(anonymous) (expr.js:0:0)
+ };
+ for (var k of iterable) { #all.push(k); }
+ iterable.i = 0;
+
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ };
+ for (var #k of iterable) { all.push(k); }
+ iterable.i = 0;
+
+next (test.js:17:10)
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ next() {
+ #if (this.i < 1) {
+ return { value: this.i++, done: false };
+
+next (test.js:20:10)
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ }
+ #return { value: undefined, done: true };
+ }
+
+next (test.js:21:8)
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ return { value: undefined, done: true };
+ #}
+ };
+
+testFunction (test.js:26:2)
+(anonymous) (expr.js:0:0)
+ for (var k of iterable) { all.push(k); }
+ #iterable.i = 0;
+ for (let k of iterable) { all.push(k); }
+
+testFunction (test.js:27:16)
+(anonymous) (expr.js:0:0)
+ iterable.i = 0;
+ for (let k of #iterable) { all.push(k); }
+}
+
+[Symbol.iterator] (test.js:14:6)
+testFunction (test.js:27:16)
+(anonymous) (expr.js:0:0)
+ [Symbol.iterator]() {
+ #return {
+ i: 0,
+
+[Symbol.iterator] (test.js:23:4)
+testFunction (test.js:27:16)
+(anonymous) (expr.js:0:0)
+ };
+ #}
+ };
+
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ iterable.i = 0;
+ for (let #k of iterable) { all.push(k); }
+}
+
+next (test.js:17:10)
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ next() {
+ #if (this.i < 1) {
+ return { value: this.i++, done: false };
+
+next (test.js:18:12)
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ if (this.i < 1) {
+ #return { value: this.i++, done: false };
+ }
+
+next (test.js:21:8)
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ return { value: undefined, done: true };
+ #}
+ };
+
+testFunction (test.js:27:28)
+(anonymous) (expr.js:0:0)
+ iterable.i = 0;
+ for (let k of iterable) { #all.push(k); }
+}
+
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ iterable.i = 0;
+ for (let #k of iterable) { all.push(k); }
+}
+
+next (test.js:17:10)
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ next() {
+ #if (this.i < 1) {
+ return { value: this.i++, done: false };
+
+next (test.js:20:10)
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ }
+ #return { value: undefined, done: true };
+ }
+
+next (test.js:21:8)
+testFunction (test.js:27:11)
+(anonymous) (expr.js:0:0)
+ return { value: undefined, done: true };
+ #}
+ };
+
+testFunction (test.js:28:0)
+(anonymous) (expr.js:0:0)
+ for (let k of iterable) { all.push(k); }
+#}
+
+(anonymous) (expr.js:0:34)
+
+
+
+Running test: testStepIntoAfterBreakpoint
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ };
+ for (var #k of iterable) { all.push(k); }
+ iterable.i = 0;
+
+next (test.js:17:10)
+testFunction (test.js:25:11)
+(anonymous) (expr.js:0:0)
+ next() {
+ #if (this.i < 1) {
+ return { value: this.i++, done: false };
+

Powered by Google App Engine
This is Rietveld 408576698