Skip to content

Commit 7fd9495

Browse files
committed
Update snapshots
1 parent 9acb696 commit 7fd9495

File tree

90 files changed

+1824
-1770
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1824
-1770
lines changed

test/snapshot/__snapshots__/order-library-reverse.sb3.tw-snapshot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ yield;
1818
thread.timer = null;
1919
b0.value = ((+b0.value || 0) + 1);
2020
if (((b0.value || 0) === 1)) {
21-
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (1)",}, b2, false, false, null);
21+
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (1)",}, b2, false, false, null, null);
2222
} else {
23-
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 1 != " + ("" + b0.value)),}, b2, false, false, null);
23+
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 1 != " + ("" + b0.value)),}, b2, false, false, null, null);
2424
}
2525
retire(); return;
2626
}; })
@@ -30,7 +30,7 @@ retire(); return;
3030
const b0 = runtime.getOpcodeFunction("looks_say");
3131
const b1 = stage.variables["p]KODv+)+:l=%NT~j3/d-wait"];
3232
return function* genXYZ () {
33-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 2",}, b0, false, false, null);
33+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 2",}, b0, false, false, null, null);
3434
thread.timer = timer();
3535
var a0 = Math.max(0, 1000 * (+b1.value || 0));
3636
runtime.requestRedraw();
@@ -55,7 +55,7 @@ while (thread.timer.timeElapsed() < a2) {
5555
yield;
5656
}
5757
thread.timer = null;
58-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
58+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
5959
retire(); return;
6060
}; })
6161

@@ -76,9 +76,9 @@ yield;
7676
thread.timer = null;
7777
b0.value = ((+b0.value || 0) + 1);
7878
if (((b0.value || 0) === 2)) {
79-
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (2)",}, b2, false, false, null);
79+
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (2)",}, b2, false, false, null, null);
8080
} else {
81-
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 2 != " + ("" + b0.value)),}, b2, false, false, null);
81+
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 2 != " + ("" + b0.value)),}, b2, false, false, null, null);
8282
}
8383
retire(); return;
8484
}; })

test/snapshot/__snapshots__/order-library.sb3.tw-snapshot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
const b0 = runtime.getOpcodeFunction("looks_say");
77
const b1 = stage.variables["):/PVGTvoVRvq(ikGwRE-wait"];
88
return function* genXYZ () {
9-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 2",}, b0, false, false, null);
9+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 2",}, b0, false, false, null, null);
1010
thread.timer = timer();
1111
var a0 = Math.max(0, 1000 * (+b1.value || 0));
1212
runtime.requestRedraw();
@@ -31,7 +31,7 @@ while (thread.timer.timeElapsed() < a2) {
3131
yield;
3232
}
3333
thread.timer = null;
34-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
34+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
3535
retire(); return;
3636
}; })
3737

@@ -52,9 +52,9 @@ yield;
5252
thread.timer = null;
5353
b0.value = ((+b0.value || 0) + 1);
5454
if (((b0.value || 0) === 1)) {
55-
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (1)",}, b2, false, false, null);
55+
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (1)",}, b2, false, false, null, null);
5656
} else {
57-
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 1 != " + ("" + b0.value)),}, b2, false, false, null);
57+
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 1 != " + ("" + b0.value)),}, b2, false, false, null, null);
5858
}
5959
retire(); return;
6060
}; })
@@ -76,9 +76,9 @@ yield;
7676
thread.timer = null;
7777
b0.value = ((+b0.value || 0) + 1);
7878
if (((b0.value || 0) === 2)) {
79-
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (2)",}, b2, false, false, null);
79+
yield* executeInCompatibilityLayer({"MESSAGE":"pass order is correct (2)",}, b2, false, false, null, null);
8080
} else {
81-
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 2 != " + ("" + b0.value)),}, b2, false, false, null);
81+
yield* executeInCompatibilityLayer({"MESSAGE":("fail order is incorrect 2 != " + ("" + b0.value)),}, b2, false, false, null, null);
8282
}
8383
retire(); return;
8484
}; })

test/snapshot/__snapshots__/tw-NaN.sb3.tw-snapshot

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,67 @@
55
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
66
const b0 = runtime.getOpcodeFunction("looks_say");
77
return function* genXYZ () {
8-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 20",}, b0, false, false, null);
8+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 20",}, b0, false, false, null, null);
99
if ((("" + (0 * Infinity)).toLowerCase() === "NaN".toLowerCase())) {
10-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
10+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
1111
}
1212
if (compareEqual((((0 * Infinity) || 0) * 1), 0)) {
13-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
13+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
1414
}
1515
if ((("" + ((Math.acos(1.01) * 180) / Math.PI)).toLowerCase() === "NaN".toLowerCase())) {
16-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
16+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
1717
}
1818
if (compareEqual(((((Math.acos(1.01) * 180) / Math.PI) || 0) * 1), 0)) {
19-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
19+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
2020
}
2121
if ((("" + ((Math.asin(1.01) * 180) / Math.PI)).toLowerCase() === "NaN".toLowerCase())) {
22-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
22+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
2323
}
2424
if (compareEqual(((((Math.asin(1.01) * 180) / Math.PI) || 0) * 1), 0)) {
25-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
25+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
2626
}
2727
if ((("" + (0 / 0)).toLowerCase() === "NaN".toLowerCase())) {
28-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
28+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
2929
}
3030
if (compareEqual((((0 / 0) || 0) * 1), 0)) {
31-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
31+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
3232
}
3333
if ((("" + Math.sqrt(-1)).toLowerCase() === "NaN".toLowerCase())) {
34-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
34+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
3535
}
3636
if (compareEqual(((Math.sqrt(-1) || 0) * 1), 0)) {
37-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
37+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
3838
}
3939
if ((("" + mod(0, 0)).toLowerCase() === "NaN".toLowerCase())) {
40-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
40+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
4141
}
4242
if (compareEqual(((mod(0, 0) || 0) * 1), 0)) {
43-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
43+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
4444
}
4545
if ((("" + Math.log(-1)).toLowerCase() === "NaN".toLowerCase())) {
46-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
46+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
4747
}
4848
if (compareEqual(((Math.log(-1) || 0) * 1), 0)) {
49-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
49+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
5050
}
5151
if ((("" + (Math.log(-1) / Math.LN10)).toLowerCase() === "NaN".toLowerCase())) {
52-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
52+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
5353
}
5454
if (compareEqual((((Math.log(-1) / Math.LN10) || 0) * 1), 0)) {
55-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
55+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
5656
}
5757
if (compareEqual((((Math.round(Math.sin((Math.PI * ((1 / 0) || 0)) / 180) * 1e10) / 1e10) || 0) * 1), 0)) {
58-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
58+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
5959
}
6060
if (compareEqual((((Math.round(Math.cos((Math.PI * ((1 / 0) || 0)) / 180) * 1e10) / 1e10) || 0) * 1), 0)) {
61-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
61+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
6262
}
6363
if (compareEqual(((tan(((1 / 0) || 0)) || 0) * 1), 0)) {
64-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
64+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
6565
}
6666
if (compareEqual(((runtime.ext_scratch3_operators._random((-1 / 0), (1 / 0)) || 0) * 1), 0)) {
67-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
67+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
6868
}
69-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
69+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
7070
retire(); return;
7171
}; })

test/snapshot/__snapshots__/tw-add-can-return-nan.sb3.tw-snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
66
const b0 = runtime.getOpcodeFunction("looks_say");
77
return function* genXYZ () {
8-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null);
8+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null, null);
99
if (!((Infinity + -Infinity) <= 0)) {
10-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
10+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
1111
}
12-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
12+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
1313
retire(); return;
1414
}; })

test/snapshot/__snapshots__/tw-all-at-once.sb3.tw-snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
66
const b0 = runtime.getOpcodeFunction("looks_say");
77
return function* genXYZ () {
8-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null);
8+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null, null);
99
if (true) {
10-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
10+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
1111
}
12-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
12+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
1313
retire(); return;
1414
}; })

test/snapshot/__snapshots__/tw-broadcast-id-and-name-desync.sb3.tw-snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
66
const b0 = runtime.getOpcodeFunction("looks_say");
77
return function* genXYZ () {
8-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
8+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
99
retire(); return;
1010
}; })
1111

1212
// Sprite1 script
1313
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
1414
const b0 = runtime.getOpcodeFunction("looks_say");
1515
return function* genXYZ () {
16-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null);
16+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null, null);
1717
yield* waitThreads(startHats("event_whenbroadcastreceived", { BROADCAST_OPTION: "message1" }));
18-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
18+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
1919
retire(); return;
2020
}; })

test/snapshot/__snapshots__/tw-change-size-does-not-use-rounded-size.sb3.tw-snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
const b0 = runtime.getOpcodeFunction("looks_say");
77
const b1 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"];
88
return function* genXYZ () {
9-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null);
9+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null, null);
1010
target.setSize(96);
1111
b1.value = 0;
1212
while (!(100 === Math.round(target.size))) {
@@ -15,8 +15,8 @@ target.setSize(target.size + ((((100 - Math.round(target.size)) || 0) / 10) || 0
1515
yield;
1616
}
1717
if (((+b1.value || 0) === 20)) {
18-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
18+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
1919
}
20-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
20+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
2121
retire(); return;
2222
}; })

test/snapshot/__snapshots__/tw-color-input-returns-hex.sb3.tw-snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
const b0 = runtime.getOpcodeFunction("looks_say");
77
const b1 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"];
88
return function* genXYZ () {
9-
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null);
9+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null, null);
1010
b1.value = "#22388a";
1111
if ((("" + b1.value).toLowerCase() === "#22388a".toLowerCase())) {
12-
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null);
12+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null, null);
1313
}
14-
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
14+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null, null);
1515
retire(); return;
1616
}; })

0 commit comments

Comments
 (0)