-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform property migrations in rbx_xml serializer (#340)
- Loading branch information
Showing
5 changed files
with
133 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
rbx_xml/src/tests/snapshots/rbx_xml__tests__basic__bad_migrated_property.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
source: rbx_xml/src/tests/basic.rs | ||
expression: "std::str::from_utf8(&encoded).unwrap()" | ||
--- | ||
<roblox version="4"> | ||
<Item class="Folder" referent="0"> | ||
<Properties> | ||
<string name="Name">Folder</string> | ||
</Properties> | ||
<Item class="TextLabel" referent="1"> | ||
<Properties> | ||
<string name="Name">TextLabel</string> | ||
<token name="Font">4294967295</token> | ||
</Properties> | ||
</Item> | ||
</Item> | ||
</roblox> |
65 changes: 65 additions & 0 deletions
65
rbx_xml/src/tests/snapshots/rbx_xml__tests__basic__migrated_properties.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
source: rbx_xml/src/tests/basic.rs | ||
expression: "std::str::from_utf8(&encoded).unwrap()" | ||
--- | ||
<roblox version="4"> | ||
<Item class="Folder" referent="0"> | ||
<Properties> | ||
<string name="Name">Folder</string> | ||
</Properties> | ||
<Item class="ScreenGui" referent="1"> | ||
<Properties> | ||
<string name="Name">ScreenGui</string> | ||
<token name="ScreenInsets">0</token> | ||
</Properties> | ||
</Item> | ||
<Item class="ScreenGui" referent="2"> | ||
<Properties> | ||
<string name="Name">ScreenGui</string> | ||
<token name="ScreenInsets">1</token> | ||
</Properties> | ||
</Item> | ||
<Item class="Part" referent="3"> | ||
<Properties> | ||
<string name="Name">Part</string> | ||
<Color3uint8 name="Color3uint8">16777215</Color3uint8> | ||
</Properties> | ||
</Item> | ||
<Item class="Part" referent="4"> | ||
<Properties> | ||
<string name="Name">Part</string> | ||
<Color3uint8 name="Color">11829503</Color3uint8> | ||
</Properties> | ||
</Item> | ||
<Item class="Part" referent="5"> | ||
<Properties> | ||
<string name="Name">Part</string> | ||
<Color3uint8 name="Color">11829503</Color3uint8> | ||
</Properties> | ||
</Item> | ||
<Item class="TextLabel" referent="6"> | ||
<Properties> | ||
<string name="Name">TextLabel</string> | ||
<Font name="FontFace"> | ||
<Family> | ||
<url>rbxasset://fonts/families/SourceSansPro.json</url> | ||
</Family> | ||
<Weight>400</Weight> | ||
<Style>Normal</Style> | ||
</Font> | ||
</Properties> | ||
</Item> | ||
<Item class="TextLabel" referent="7"> | ||
<Properties> | ||
<string name="Name">TextLabel</string> | ||
<Font name="FontFace"> | ||
<Family> | ||
<url>rbxasset://fonts/families/Guru.json</url> | ||
</Family> | ||
<Weight>400</Weight> | ||
<Style>Normal</Style> | ||
</Font> | ||
</Properties> | ||
</Item> | ||
</Item> | ||
</roblox> |