diff options
Diffstat (limited to 'js/src/tests/ecma_7/TypedObject/referencetypemultiple.js')
-rw-r--r-- | js/src/tests/ecma_7/TypedObject/referencetypemultiple.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/src/tests/ecma_7/TypedObject/referencetypemultiple.js b/js/src/tests/ecma_7/TypedObject/referencetypemultiple.js new file mode 100644 index 000000000..f5fc54891 --- /dev/null +++ b/js/src/tests/ecma_7/TypedObject/referencetypemultiple.js @@ -0,0 +1,22 @@ +// |reftest| skip-if(!this.hasOwnProperty("TypedObject")) +var BUGNUMBER = 898359; +var summary = 'TypedObjects reference type coercions'; +var actual = ''; +var expect = ''; + +var ArrayType = TypedObject.ArrayType; +var StructType = TypedObject.StructType; +var Any = TypedObject.Any; +var Object = TypedObject.Object; +var string = TypedObject.string; + + +function runTests() +{ + var S = new StructType({f: Any, g: Any}); + var s = new S({f: "Hello", g: "Hello"}); + assertEq(s.f, s.g); + reportCompare(true, true, "TypedObjects trace tests"); +} + +runTests(); |