Title: [248811] trunk/LayoutTests
Revision
248811
Author
mmaxfi...@apple.com
Date
2019-08-16 19:56:55 -0700 (Fri, 16 Aug 2019)

Log Message

[WHLSL] Add test for the interaction between setters and increments
https://bugs.webkit.org/show_bug.cgi?id=200848

Reviewed by Saam Barati.

As discovered by Robin in https://github.com/gpuweb/WHLSL/issues/308

* webgpu/whlsl/increment-setter-expected.txt: Added.
* webgpu/whlsl/increment-setter.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (248810 => 248811)


--- trunk/LayoutTests/ChangeLog	2019-08-17 02:48:49 UTC (rev 248810)
+++ trunk/LayoutTests/ChangeLog	2019-08-17 02:56:55 UTC (rev 248811)
@@ -1,3 +1,15 @@
+2019-08-16  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+        [WHLSL] Add test for the interaction between setters and increments
+        https://bugs.webkit.org/show_bug.cgi?id=200848
+
+        Reviewed by Saam Barati.
+
+        As discovered by Robin in https://github.com/gpuweb/WHLSL/issues/308
+
+        * webgpu/whlsl/increment-setter-expected.txt: Added.
+        * webgpu/whlsl/increment-setter.html: Added.
+
 2019-08-16  Ryan Haddad  <ryanhad...@apple.com>
 
         [ContentChangeObserver] Keep track of all the visibility candidates.

Added: trunk/LayoutTests/webgpu/whlsl/increment-setter-expected.txt (0 => 248811)


--- trunk/LayoutTests/webgpu/whlsl/increment-setter-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/webgpu/whlsl/increment-setter-expected.txt	2019-08-17 02:56:55 UTC (rev 248811)
@@ -0,0 +1,3 @@
+
+PASS incrementSetter 
+

Added: trunk/LayoutTests/webgpu/whlsl/increment-setter.html (0 => 248811)


--- trunk/LayoutTests/webgpu/whlsl/increment-setter.html	                        (rev 0)
+++ trunk/LayoutTests/webgpu/whlsl/increment-setter.html	2019-08-17 02:56:55 UTC (rev 248811)
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<meta charset=utf-8>
+<meta name="timeout" content="long">
+<title>Test prefix/postfix.</title>
+<script src=""
+<script src=""
+<script src=""
+<script src=""
+<script>
+const whlslTests = {};
+
+whlslTests.incrementSetter = async () =>
+{
+    let program = `
+        struct Foo {
+            int z;
+        }
+        int operator.w(Foo foo) {
+            return 8;
+        }
+        Foo operator.w=(Foo foo, int value) {
+            foo.z = value;
+            return foo;
+        }
+        int bar() {
+            Foo foo;
+            foo.z = 3;
+            int value = foo.w++;
+            return value*100 + foo.z*10 + foo.w;
+        }
+    `;
+    assert_equals(await callIntFunction(program, "bar", []), 898);
+}
+
+runTests(whlslTests);
+</script>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to