mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Add test case
This commit is contained in:
parent
048f4271f2
commit
fc9c816a57
5 changed files with 79 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
source: tests/rojo_test/syncback_util.rs
|
||||||
|
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||||
|
---
|
||||||
|
Writing default.project.json
|
||||||
|
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
source: tests/tests/syncback.rs
|
||||||
|
expression: default.project.json
|
||||||
|
---
|
||||||
|
{
|
||||||
|
"name": "SyncbackTest",
|
||||||
|
"tree": {
|
||||||
|
"$className": "DataModel",
|
||||||
|
"Workspace": {
|
||||||
|
"$className": "Workspace",
|
||||||
|
"TestPart": {
|
||||||
|
"$className": "Part",
|
||||||
|
"$properties": {
|
||||||
|
"Anchored": true,
|
||||||
|
"Color": {
|
||||||
|
"Color3uint8": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
255
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$properties": {
|
||||||
|
"EnableSLIMAvatars": {
|
||||||
|
"Enum": 0
|
||||||
|
},
|
||||||
|
"ImprovedAnimationConstraint": {
|
||||||
|
"Enum": 0
|
||||||
|
},
|
||||||
|
"ImprovedPhysicsReplication": {
|
||||||
|
"Enum": 0
|
||||||
|
},
|
||||||
|
"LayeredClothingCacheOptimizations": {
|
||||||
|
"Enum": 0
|
||||||
|
},
|
||||||
|
"MeshStreamingAndImprovedLods": {
|
||||||
|
"Enum": 0
|
||||||
|
},
|
||||||
|
"UseNewLuauTypeSolver": "Disabled",
|
||||||
|
"ValidateEnabledProximityPrompt": {
|
||||||
|
"Enum": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$attributes": {
|
||||||
|
"Rojo_Target_CurrentCamera": "302d573157260ee80a3baa32000003b5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"name": "SyncbackTest",
|
||||||
|
"tree": {
|
||||||
|
"$className": "DataModel",
|
||||||
|
"Workspace": {
|
||||||
|
"$className": "Workspace",
|
||||||
|
"TestPart": {
|
||||||
|
"$className": "Part",
|
||||||
|
"$properties": {
|
||||||
|
"Transparency": 1.0,
|
||||||
|
"Anchored": true,
|
||||||
|
"Color": [
|
||||||
|
1.0,
|
||||||
|
0.0,
|
||||||
|
0.0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
|
@ -86,4 +86,7 @@ syncback_tests! {
|
||||||
sync_rules => ["src/module.modulescript", "src/text.text"],
|
sync_rules => ["src/module.modulescript", "src/text.text"],
|
||||||
// Ensures that the `syncUnscriptable` setting works
|
// Ensures that the `syncUnscriptable` setting works
|
||||||
unscriptable_properties => ["default.project.json"],
|
unscriptable_properties => ["default.project.json"],
|
||||||
|
// Ensures that syncback correctly removes default values from projects rather
|
||||||
|
// than leaving an incorrect value.
|
||||||
|
project_default_properties_remove => ["default.project.json"],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue