mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 14:15:24 +00:00
Update to stable rbx-dom libraries
This commit is contained in:
@@ -360,8 +360,7 @@ mod test {
|
||||
"$className": "StringValue",
|
||||
"$properties": {
|
||||
"Value": {
|
||||
"Type": "String",
|
||||
"Value": "Hello, world!"
|
||||
"String": "Hello, world!"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ pub fn snapshot_rbxm(
|
||||
path: &Path,
|
||||
instance_name: &str,
|
||||
) -> SnapshotInstanceResult {
|
||||
let temp_tree = rbx_binary::from_reader_default(vfs.read(path)?.as_slice())
|
||||
let temp_tree = rbx_binary::from_reader(vfs.read(path)?.as_slice())
|
||||
.with_context(|| format!("Malformed rbxm file: {}", path.display()))?;
|
||||
|
||||
let root_instance = temp_tree.root();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/csv.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: LocalizationTable
|
||||
properties:
|
||||
Contents:
|
||||
Type: String
|
||||
Value: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/csv.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: LocalizationTable
|
||||
properties:
|
||||
Contents:
|
||||
Type: String
|
||||
Value: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/json.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: ModuleScript
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: "return {\n\t[\"1invalidident\"] = \"nice\",\n\tarray = {1, 2, 3},\n\t[\"false\"] = false,\n\tfloat = 1234.5452,\n\tint = 1234,\n\tnull = nil,\n\tobject = {\n\t\thello = \"world\",\n\t},\n\t[\"true\"] = true,\n}"
|
||||
String: "return {\n\t[\"1invalidident\"] = \"nice\",\n\tarray = {1, 2, 3},\n\t[\"false\"] = false,\n\tfloat = 1234.5452,\n\tint = 1234,\n\tnull = nil,\n\tobject = {\n\t\thello = \"world\",\n\t},\n\t[\"true\"] = true,\n}"
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/json_model.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -14,8 +15,7 @@ name: foo
|
||||
class_name: IntValue
|
||||
properties:
|
||||
Value:
|
||||
Type: Int64
|
||||
Value: 5
|
||||
Int64: 5
|
||||
children:
|
||||
- snapshot_id: ~
|
||||
metadata:
|
||||
@@ -26,3 +26,4 @@ children:
|
||||
class_name: StringValue
|
||||
properties: {}
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: LocalScript
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Hello there!
|
||||
String: Hello there!
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: ModuleScript
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Hello there!
|
||||
String: Hello there!
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: ModuleScript
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Hello there!
|
||||
String: Hello there!
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,9 +16,8 @@ name: bar
|
||||
class_name: Script
|
||||
properties:
|
||||
Disabled:
|
||||
Type: Bool
|
||||
Value: true
|
||||
Bool: true
|
||||
Source:
|
||||
Type: String
|
||||
Value: Hello there!
|
||||
String: Hello there!
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: Script
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Hello there!
|
||||
String: Hello there!
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: Script
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Hello there!
|
||||
String: Hello there!
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: path-property-override
|
||||
class_name: StringValue
|
||||
properties:
|
||||
Value:
|
||||
Type: String
|
||||
Value: Changed
|
||||
String: Changed
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -16,6 +17,6 @@ name: path-project
|
||||
class_name: StringValue
|
||||
properties:
|
||||
Value:
|
||||
Type: String
|
||||
Value: "Hello, world!"
|
||||
String: "Hello, world!"
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -14,6 +15,6 @@ name: resolved-properties
|
||||
class_name: StringValue
|
||||
properties:
|
||||
Value:
|
||||
Type: String
|
||||
Value: "Hello, world!"
|
||||
String: "Hello, world!"
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -14,6 +15,6 @@ name: unresolved-properties
|
||||
class_name: StringValue
|
||||
properties:
|
||||
Value:
|
||||
Type: String
|
||||
Value: Hi!
|
||||
String: Hi!
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
source: src/snapshot_middleware/txt.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
@@ -15,6 +16,6 @@ name: foo
|
||||
class_name: StringValue
|
||||
properties:
|
||||
Value:
|
||||
Type: String
|
||||
Value: Hello there!
|
||||
String: Hello there!
|
||||
children: []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user