Skip to content

Commit 542c44e

Browse files
committed
Update Spec tests
1 parent fd2ff36 commit 542c44e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2049
-325
lines changed

lib/wabt/chakra/wabtapi.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ Features GetWabtFeatures(const ChakraContext& ctx)
8181
{
8282
features.enable_sat_float_to_int();
8383
}
84+
85+
// Enable wabt features that have made it into the spec
86+
features.enable_mutable_globals();
8487
return features;
8588
}
8689

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
32/32 tests passed.
1+
(50) testsuite/core/binary.wast:190: assert_malformed module failed. Should have had an error
2+
(51) testsuite/core/binary.wast:200: assert_malformed module failed. Should have had an error
3+
(52) testsuite/core/binary.wast:210: assert_malformed module failed. Should have had an error
4+
(53) testsuite/core/binary.wast:220: assert_malformed module failed. Should have had an error
5+
(54) testsuite/core/binary.wast:231: assert_malformed module failed. Should have had an error
6+
(55) testsuite/core/binary.wast:241: assert_malformed module failed. Should have had an error
7+
(56) testsuite/core/binary.wast:251: assert_malformed module failed. Should have had an error
8+
(57) testsuite/core/binary.wast:261: assert_malformed module failed. Should have had an error
9+
53/61 tests passed.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10/10 tests passed.

test/WasmSpec/baselines/custom_section.baseline

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/WasmSpec/baselines/data.baseline

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
45/45 tests passed.

test/WasmSpec/baselines/elem.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
32/32 tests passed.
1+
54/54 tests passed.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
38/38 tests passed.
1+
(19) testsuite/core/globals.wast:55: generate module failed. Unexpected Error: CompileError: Mutable globals cannot be exported
2+
(20) testsuite/core/globals.wast:56: generate module failed. Unexpected Error: CompileError: Mutable globals cannot be exported
3+
34/36 tests passed.

test/WasmSpec/baselines/imports.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
24
99
24
1010
24
11-
144/144 tests passed.
11+
146/146 tests passed.

test/WasmSpec/baselines/jsapi.baseline

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Harness Status: OK
2-
Found 87 tests: Pass = 86 Fail = 1
2+
Found 104 tests: Pass = 87 Fail = 17
33
Pass 'WebAssembly' data property on global object
44
Pass 'WebAssembly' object
55
Pass 'WebAssembly.(Compile|Link|Runtime)Error' data property
@@ -46,6 +46,20 @@ Pass 'WebAssembly.Table.prototype.set' data property
4646
Pass 'WebAssembly.Table.prototype.set' method
4747
Pass 'WebAssembly.Table.prototype.grow' data property
4848
Pass 'WebAssembly.Table.prototype.grow' method
49+
Fail 'WebAssembly.Global' data property Unable to get property 'value' of undefined or null reference
50+
Fail 'WebAssembly.Global' constructor function Unable to get property 'value' of undefined or null reference
51+
Fail 'WebAssembly.Global.prototype' data property Object expected
52+
Fail 'WebAssembly.Global.prototype' object Object expected
53+
Fail 'WebAssembly.Global' instance objects Object doesn't support this action
54+
Fail Export 'WebAssembly.Global' Mutable globals cannot be exported
55+
Fail 'WebAssembly.Global.prototype.value' accessor data property Object expected
56+
Fail 'WebAssembly.Global.prototype.value' getter Object expected
57+
Fail 'WebAssembly.Global.prototype.value' setter Object expected
58+
Fail 'WebAssembly.Global.prototype.valueOf' data property Object expected
59+
Fail 'WebAssembly.Global.prototype.valueOf' method Object expected
60+
Fail 'WebAssembly.Global' default value is 0 Object doesn't support this action
61+
Fail Import 'WebAssembly.Global' Mutable globals cannot be imported
62+
Fail Import 'WebAssembly.Global' type mismatch assert_true: expected LinkError, observed CompileError expected true got false
4963
Pass 'WebAssembly.validate' method
5064
Pass 'WebAssembly.compile' data property
5165
Pass 'WebAssembly.compile' function
@@ -87,3 +101,6 @@ Pass unexpected failure in assertInstantiateSuccess
87101
Pass unexpected failure in assertInstantiateSuccess
88102
Pass unexpected failure in assertInstantiateSuccess
89103
Pass unexpected failure in assertInstantiateSuccess
104+
Fail Exported values have cached JS objects assert_equals: expected "0" but got ""
105+
Fail Tables export cached assert_equals: expected "0" but got ""
106+
Pass WebAssembly integers are converted to JavaScript as if by ToInt32
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
28/28 tests passed.
1+
29/29 tests passed.

0 commit comments

Comments
 (0)