Changeset 247338 in webkit
- Timestamp:
- Jul 10, 2019 5:59:10 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 50 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r247333 r247338 1 2019-07-10 Saam Barati <sbarati@apple.com> 2 3 [WHLSL] Import all tests that pass without compiler changes from the JS reference test suite 4 https://bugs.webkit.org/show_bug.cgi?id=199595 5 6 Rubber stamped by Robin Morisset. 7 8 * webgpu/whlsl-argument-evaluation-order-expected.txt: Added. 9 * webgpu/whlsl-argument-evaluation-order.html: Added. 10 * webgpu/whlsl-array-length-spec-tests-expected.txt: Added. 11 * webgpu/whlsl-array-length-spec-tests.html: Added. 12 * webgpu/whlsl-array-spec-tests-expected.txt: 13 * webgpu/whlsl-array-spec-tests.html: 14 * webgpu/whlsl-bad-add-expected.txt: Added. 15 * webgpu/whlsl-bad-add.html: Added. 16 * webgpu/whlsl-bools-expected.txt: Added. 17 * webgpu/whlsl-bools.html: Added. 18 * webgpu/whlsl-casts-expected.txt: Added. 19 * webgpu/whlsl-casts.html: Added. 20 * webgpu/whlsl-comment-parsing-expected.txt: Added. 21 * webgpu/whlsl-comment-parsing.html: Added. 22 * webgpu/whlsl-copy-expected.txt: Added. 23 * webgpu/whlsl-copy.html: Added. 24 * webgpu/whlsl-dereference-ordering-expected.txt: Added. 25 * webgpu/whlsl-dereference-ordering.html: Added. 26 * webgpu/whlsl-double-not-expected.txt: Added. 27 * webgpu/whlsl-double-not.html: Added. 28 * webgpu/whlsl-duplicates-expected.txt: Added. 29 * webgpu/whlsl-duplicates.html: Added. 30 * webgpu/whlsl-increment-decrement-expected.txt: Added. 31 * webgpu/whlsl-increment-decrement.html: Added. 32 * webgpu/whlsl-index-ander-expected.txt: Added. 33 * webgpu/whlsl-index-ander.html: Added. 34 * webgpu/whlsl-index-setter-getter-expected.txt: Added. 35 * webgpu/whlsl-index-setter-getter.html: Added. 36 * webgpu/whlsl-logical-negation-expected.txt: Added. 37 * webgpu/whlsl-logical-negation.html: Added. 38 * webgpu/whlsl-lots-of-local-variables-expected.txt: Added. 39 * webgpu/whlsl-lots-of-local-variables.html: Added. 40 * webgpu/whlsl-lvalues-expected.txt: Added. 41 * webgpu/whlsl-lvalues.html: Added. 42 * webgpu/whlsl-null-arg-expected.txt: Added. 43 * webgpu/whlsl-null-arg.html: Added. 44 * webgpu/whlsl-operator-overload-expected.txt: Added. 45 * webgpu/whlsl-operator-overload.html: Added. 46 * webgpu/whlsl-overload-expected.txt: Added. 47 * webgpu/whlsl-overload.html: Added. 48 * webgpu/whlsl-setter-spec-tests-expected.txt: Added. 49 * webgpu/whlsl-setter-spec-tests.html: Added. 50 * webgpu/whlsl-store-null-expected.txt: Added. 51 * webgpu/whlsl-store-null.html: Added. 52 * webgpu/whlsl-struct-expected.txt: Added. 53 * webgpu/whlsl-struct.html: Added. 54 * webgpu/whlsl-switch-expected.txt: Added. 55 * webgpu/whlsl-switch.html: Added. 56 * webgpu/whlsl-variable-shadowing-expected.txt: Added. 57 * webgpu/whlsl-variable-shadowing.html: Added. 58 * webgpu/whlsl-vector-syntax-expected.txt: Added. 59 * webgpu/whlsl-vector-syntax.html: Added. 60 1 61 2019-07-10 Truitt Savell <tsavell@apple.com> 2 62 -
trunk/LayoutTests/webgpu/whlsl-array-spec-tests-expected.txt
r247284 r247338 5 5 PASS buildArrayThenSumIt 6 6 PASS buildArrayThenSumItUsingArrayReference 7 PASS passingArrayToFunction 7 8 -
trunk/LayoutTests/webgpu/whlsl-array-spec-tests.html
r247289 r247338 96 96 } 97 97 98 whlslTests.passingArrayToFunction = async () => 99 { 100 let program = ` 101 int foo() 102 { 103 int[10] arr; 104 for (uint i = 0; i < arr.length; i++) 105 arr[i] = int(i) + 1; 106 return sum(arr); 107 } 108 109 int sum(int[10] xs) 110 { 111 int t = 0; 112 for (uint i = 0; i < xs.length; i++) 113 t = t + xs[i]; 114 return t; 115 } 116 `; 117 assert_equals(await callIntFunction(program, "foo", []), 55); 118 } 119 98 120 runTests(whlslTests); 99 121 </script>
Note: See TracChangeset
for help on using the changeset viewer.