aboutsummaryrefslogtreecommitdiff
path: root/src/debug/Test.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-30 00:11:27 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-30 00:11:27 -0400
commit877b104a61d2ab072e3b6a006168ec03e2c46365 (patch)
tree649ed24c4d493f571671e5041b86e4f994dde649 /src/debug/Test.tsx
parented17a25d4bfd0e2c71f9f381645aa74419953d2d (diff)
Mostly fixed lists
Diffstat (limited to 'src/debug/Test.tsx')
-rw-r--r--src/debug/Test.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/debug/Test.tsx b/src/debug/Test.tsx
index 7415d4b28..04ef00722 100644
--- a/src/debug/Test.tsx
+++ b/src/debug/Test.tsx
@@ -61,14 +61,12 @@ class Test extends React.Component {
assert(test2.testDoc === undefined);
test2.url = 35;
assert(test2.url === 35);
- const l = new List<number>();
+ const l = new List<Doc>();
//TODO push, and other array functions don't go through the proxy
- l.push(1);
+ l.push(doc2);
//TODO currently length, and any other string fields will get serialized
- l.length = 3;
- l[2] = 5;
+ doc.list = l;
console.log(l.slice());
- console.log(SerializationHelper.Serialize(l));
}
render() {