Skip to content

Commit b7556de

Browse files
committed
Include all sb3 fixtures in snapshot testing
1 parent 7ef5e29 commit b7556de

File tree

225 files changed

+1671
-65
lines changed

Some content is hidden

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

225 files changed

+1671
-65
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 9a3dd8d4430a32e8d9fa4cd5b2aaba83447f9d61ff65f318498abecedf011273
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 1c23d97124b9914367dcb49014cc151be6718e93c561072a03229b4cfbab2a3b
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: dd0dfde8995248152fff0dc89702ac2efb912821f8e90f9ff021a8e3646d9ca1
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 45f348e1e9a95b917613efa0e7ef22322db1194f0d0f587df626aee48abeef85
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 39c99a8264729c20dba34ab77ef3051a05987447cf123848120754d7a8cfe7fb
3+
4+

Diff for: test/snapshot/__snapshots__/comments.sb3.tw-snapshot

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// TW Snapshot
2+
// Input SHA-256: 656102a3256382d4cbb39b4af37cb8d23df0b6ac05f00fb4d02d4642277dce95
3+
4+
// Sprite1 script
5+
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
6+
return function* genXYZ () {
7+
runtime.ext_scratch3_motion._moveSteps(10, target);
8+
target.setDirection(((target.direction + 15) || 0));
9+
for (var a0 = 10; a0 >= 0.5; a0--) {
10+
target.setEffect("color", runtime.ext_scratch3_looks.clampEffect("color", 25 + target.effects["color"]));
11+
yield;
12+
}
13+
runtime.stopAll();
14+
retire(); return;
15+
retire(); return;
16+
}; })
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: d9ba4ffa47bbc3fc4b262be6540ed1a027367eec98338a881be9ad135dff7d5b
3+
4+
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 2d72a9e23c4a9d8a7763378354526636e492af1a11e6ec484029aa68eb437dd5
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: cebefd6fd1fbc9bfd570d85be62937b6e3eb20629a56c003ea1eb8ddad1cf5c2
3+
4+
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 58922b86bad938f6d522f65addd4a55dea0a47e10113469290420c95e7d02495
3+
4+

Diff for: test/snapshot/__snapshots__/default.sb3.tw-snapshot

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: efb9941a8ef6c16bc34a9fce5f0867cf72ef00fb388e3f4e55914610bdf5178d
3+
4+
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: c7a1734bd3868b5480815e7f065c65a513c84c6233339ba860b021aeb8b9c050
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// TW Snapshot
2+
// Input SHA-256: 9dda61f930b6bc46d5e91222a4a7981e78d928bd2ec3d02eaac10aad3a96e9db
3+
4+
// Sprite1 script
5+
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
6+
const b0 = runtime.getOpcodeFunction("event_whengreaterthan");
7+
return function* genXYZ () {
8+
{
9+
const resolvedValue = toBoolean((yield* executeInCompatibilityLayer({"VALUE":-1,"WHENGREATERTHANMENU":"TIMER",}, b0, false, false, "6_LWXLQd4FuIZoqqsd,x", null)));
10+
const id = "6_LWXLQd4FuIZoqqsd,x";
11+
const hasOldEdgeValue = target.hasEdgeActivatedValue(id);
12+
const oldEdgeValue = target.updateEdgeActivatedValue(id, resolvedValue);
13+
const edgeWasActivated = hasOldEdgeValue ? (!oldEdgeValue && resolvedValue) : resolvedValue;
14+
if (!edgeWasActivated) {
15+
retire(); return;
16+
}
17+
yield;
18+
}
19+
runtime.ext_scratch3_motion._moveSteps(10, target);
20+
retire(); return;
21+
}; })
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 7560b8303898b20a7cc31b302e1a42c323c3d414a52afc7a41b2e310459f52dc
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: 8a4d101febf1f90696b63fe119e7bb891bfdde833a37463a838c426d32a63b09
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: de2eaf848b97aef78be0a45ff1acce1054616d39002135773dc4eb58da02e1b7
3+
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// TW Snapshot
2+
// Input SHA-256: b8faa04eacbef599c71747d880ba5037f1351de7b897b42e2e34bffad5e5bff8
3+
4+

0 commit comments

Comments
 (0)