⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 246390 in webkit


Ignore:
Timestamp:
Jun 12, 2019, 8:44:24 PM (7 years ago)
Author:
mmaxfield@apple.com
Message:

[WHLSL] Educate the property resolver about IndexExpressions
https://bugs.webkit.org/show_bug.cgi?id=198399

Unreviewed test gardening.

Failing WebGPU tests should fail instead of time out.

  • webgpu/blend-color-triangle-strip.html:
  • webgpu/blend-triangle-strip.html:
  • webgpu/blit-commands.html:
  • webgpu/buffer-command-buffer-races.html:
  • webgpu/buffer-resource-triangles.html:
  • webgpu/color-write-mask-triangle-strip.html:
  • webgpu/depth-enabled-triangle-strip.html:
  • webgpu/draw-indexed-triangles.html:
  • webgpu/propertyresolver/ander-abstract-lvalue.html:
  • webgpu/propertyresolver/ander-lvalue-3-levels.html:
  • webgpu/propertyresolver/ander-lvalue.html:
  • webgpu/propertyresolver/ander.html:
  • webgpu/propertyresolver/getter.html:
  • webgpu/propertyresolver/indexer-ander-abstract-lvalue.html:
  • webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html:
  • webgpu/propertyresolver/indexer-ander-lvalue.html:
  • webgpu/propertyresolver/indexer-ander.html:
  • webgpu/propertyresolver/indexer-getter.html:
  • webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html:
  • webgpu/propertyresolver/indexer-setter-abstract-lvalue.html:
  • webgpu/propertyresolver/indexer-setter-lvalue.html:
  • webgpu/propertyresolver/indexer-setter.html:
  • webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html:
  • webgpu/propertyresolver/setter-abstract-lvalue.html:
  • webgpu/propertyresolver/setter-lvalue.html:
  • webgpu/simple-triangle-strip.html:
  • webgpu/texture-triangle-strip.html:
  • webgpu/vertex-buffer-triangle-strip.html:
  • webgpu/viewport-scissor-rect-triangle-strip.html:
  • webgpu/whlsl-arbitrary-vertex-attribute-locations.html:
  • webgpu/whlsl-dereference-pointer-should-type-check.html:
  • webgpu/whlsl-do-while-loop-break.html:
  • webgpu/whlsl-do-while-loop-continue.html:
  • webgpu/whlsl-do-while-loop.html:
  • webgpu/whlsl-dont-crash-parsing-enum.html:
  • webgpu/whlsl-dot-expressions.html:
  • webgpu/whlsl-ensure-proper-variable-lifetime-2.html:
  • webgpu/whlsl-ensure-proper-variable-lifetime-3.html:
  • webgpu/whlsl-ensure-proper-variable-lifetime.html:
  • webgpu/whlsl-loops-break.html:
  • webgpu/whlsl-loops-continue.html:
  • webgpu/whlsl-loops.html:
  • webgpu/whlsl-nested-dot-expression-rvalue.html:
  • webgpu/whlsl-nested-loop.html:
  • webgpu/whlsl-return-local-variable.html:
  • webgpu/whlsl-store-to-property-updates-properly.html:
  • webgpu/whlsl-while-loop-break.html:
  • webgpu/whlsl-while-loop-continue.html:
  • webgpu/whlsl-zero-initialize-values-2.html:
  • webgpu/whlsl-zero-initialize-values.html:
  • webgpu/whlsl.html:
Location:
trunk/LayoutTests
Files:
52 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r246389 r246390  
     12019-06-12  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [WHLSL] Educate the property resolver about IndexExpressions
     4        https://bugs.webkit.org/show_bug.cgi?id=198399
     5
     6        Unreviewed test gardening.
     7
     8        Failing WebGPU tests should fail instead of time out.
     9
     10        * webgpu/blend-color-triangle-strip.html:
     11        * webgpu/blend-triangle-strip.html:
     12        * webgpu/blit-commands.html:
     13        * webgpu/buffer-command-buffer-races.html:
     14        * webgpu/buffer-resource-triangles.html:
     15        * webgpu/color-write-mask-triangle-strip.html:
     16        * webgpu/depth-enabled-triangle-strip.html:
     17        * webgpu/draw-indexed-triangles.html:
     18        * webgpu/propertyresolver/ander-abstract-lvalue.html:
     19        * webgpu/propertyresolver/ander-lvalue-3-levels.html:
     20        * webgpu/propertyresolver/ander-lvalue.html:
     21        * webgpu/propertyresolver/ander.html:
     22        * webgpu/propertyresolver/getter.html:
     23        * webgpu/propertyresolver/indexer-ander-abstract-lvalue.html:
     24        * webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html:
     25        * webgpu/propertyresolver/indexer-ander-lvalue.html:
     26        * webgpu/propertyresolver/indexer-ander.html:
     27        * webgpu/propertyresolver/indexer-getter.html:
     28        * webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html:
     29        * webgpu/propertyresolver/indexer-setter-abstract-lvalue.html:
     30        * webgpu/propertyresolver/indexer-setter-lvalue.html:
     31        * webgpu/propertyresolver/indexer-setter.html:
     32        * webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html:
     33        * webgpu/propertyresolver/setter-abstract-lvalue.html:
     34        * webgpu/propertyresolver/setter-lvalue.html:
     35        * webgpu/simple-triangle-strip.html:
     36        * webgpu/texture-triangle-strip.html:
     37        * webgpu/vertex-buffer-triangle-strip.html:
     38        * webgpu/viewport-scissor-rect-triangle-strip.html:
     39        * webgpu/whlsl-arbitrary-vertex-attribute-locations.html:
     40        * webgpu/whlsl-dereference-pointer-should-type-check.html:
     41        * webgpu/whlsl-do-while-loop-break.html:
     42        * webgpu/whlsl-do-while-loop-continue.html:
     43        * webgpu/whlsl-do-while-loop.html:
     44        * webgpu/whlsl-dont-crash-parsing-enum.html:
     45        * webgpu/whlsl-dot-expressions.html:
     46        * webgpu/whlsl-ensure-proper-variable-lifetime-2.html:
     47        * webgpu/whlsl-ensure-proper-variable-lifetime-3.html:
     48        * webgpu/whlsl-ensure-proper-variable-lifetime.html:
     49        * webgpu/whlsl-loops-break.html:
     50        * webgpu/whlsl-loops-continue.html:
     51        * webgpu/whlsl-loops.html:
     52        * webgpu/whlsl-nested-dot-expression-rvalue.html:
     53        * webgpu/whlsl-nested-loop.html:
     54        * webgpu/whlsl-return-local-variable.html:
     55        * webgpu/whlsl-store-to-property-updates-properly.html:
     56        * webgpu/whlsl-while-loop-break.html:
     57        * webgpu/whlsl-while-loop-continue.html:
     58        * webgpu/whlsl-zero-initialize-values-2.html:
     59        * webgpu/whlsl-zero-initialize-values.html:
     60        * webgpu/whlsl.html:
     61
    1622019-06-12  Simon Fraser  <simon.fraser@apple.com>
    263
  • trunk/LayoutTests/webgpu/blend-color-triangle-strip.html

    r244093 r246390  
    7676
    7777    queue.submit([commandEncoder.finish()]);
    78 
    79     requestAnimationFrame(() => {
    80         if (window.testRunner)
    81             testRunner.notifyDone();
    82     });
    8378}
    8479
    85 test();
     80test().then(function() {
     81    if (window.testRunner)
     82        testRunner.notifyDone();
     83}, function() {
     84    if (window.testRunner)
     85        testRunner.notifyDone();
     86});
    8687</script>
  • trunk/LayoutTests/webgpu/blend-triangle-strip.html

    r246217 r246390  
    4242}
    4343`;
    44 
    45 window.addEventListener("load", test, false);
    4644
    4745async function test() {
     
    9694
    9795    device.getQueue().submit([commandEncoder.finish()]);
     96}
    9897
    99     requestAnimationFrame(() => {
     98window.addEventListener("load", function() {
     99    test().then(function() {
     100        if (window.testRunner)
     101            testRunner.notifyDone();
     102    }, function() {
    100103        if (window.testRunner)
    101104            testRunner.notifyDone();
    102105    });
    103 }
     106}, false);
    104107</script>
  • trunk/LayoutTests/webgpu/blit-commands.html

    r246217 r246390  
    1515    const image = new Image();
    1616    image.src = "resources/green-400.png";
    17     image.onload = () => { test(image); }
     17    image.onload = function() {
     18        test(image).then(function() {
     19            if (window.testRunner)
     20                testRunner.notifyDone();
     21        }, function() {
     22            if (window.testRunner)
     23                testRunner.notifyDone();
     24        });
     25    }
    1826}
    1927
     
    92100        readBuffer.destroy();
    93101    });
    94 
    95     if (window.testRunner)
    96         testRunner.notifyDone();
    97102}
    98103
  • trunk/LayoutTests/webgpu/buffer-command-buffer-races.html

    r246217 r246390  
    140140    middleBuffer.destroy();
    141141    upperRightBuffer.destroy();
     142}
    142143
     144test().then(function() {
    143145    if (window.testRunner)
    144146        testRunner.notifyDone();
    145 }
    146 
    147 test();
     147}, function() {
     148    if (window.testRunner)
     149        testRunner.notifyDone();
     150});
    148151</script>
  • trunk/LayoutTests/webgpu/buffer-resource-triangles.html

    r246217 r246390  
    197197        const queue = device.getQueue();
    198198        queue.submit([commandEncoder.finish()]);
    199 
    200         if (window.testRunner)
    201             testRunner.notifyDone();
    202     });
    203 }
    204 
    205 test();
     199    });
     200}
     201
     202test().then(function() {
     203    if (window.testRunner)
     204        testRunner.notifyDone();
     205}, function() {
     206    if (window.testRunner)
     207        testRunner.notifyDone();
     208});
    206209</script>
  • trunk/LayoutTests/webgpu/color-write-mask-triangle-strip.html

    r244442 r246390  
    7070
    7171    queue.submit([commandEncoder.finish()]);
    72 
    73     requestAnimationFrame(() => {
    74         if (window.testRunner)
    75             testRunner.notifyDone();
    76     });
    7772}
    7873
    79 test();
     74test().then(function() {
     75    if (window.testRunner)
     76        testRunner.notifyDone();
     77}, function() {
     78    if (window.testRunner)
     79        testRunner.notifyDone();
     80});
    8081</script>
  • trunk/LayoutTests/webgpu/depth-enabled-triangle-strip.html

    r246217 r246390  
    109109
    110110    device.getQueue().submit([commandEncoder.finish()]);
     111}
    111112
     113test().then(function() {
    112114    if (window.testRunner)
    113115        testRunner.notifyDone();
    114 }
    115 
    116 test();
     116}, function() {
     117    if (window.testRunner)
     118        testRunner.notifyDone();
     119});
    117120</script>
  • trunk/LayoutTests/webgpu/draw-indexed-triangles.html

    r246217 r246390  
    113113    device.getQueue().submit([commandEncoder.finish()]);
    114114    vertexBuffer.destroy();
     115}
    115116
     117test().then(function() {
    116118    if (window.testRunner)
    117119        testRunner.notifyDone();
    118 }
    119 
    120 test();
     120}, function() {
     121    if (window.testRunner)
     122        testRunner.notifyDone();
     123});
    121124</script>
  • trunk/LayoutTests/webgpu/propertyresolver/ander-abstract-lvalue.html

    r246385 r246390  
    104104    const commandBuffer = commandEncoder.finish();
    105105    device.getQueue().submit([commandBuffer]);
    106 
    107     if (window.testRunner)
    108         testRunner.notifyDone();
    109106}
    110107if (window.testRunner)
    111108    testRunner.waitUntilDone();
    112 window.addEventListener("load", start);
     109window.addEventListener("load", function() {
     110    start().then(function() {
     111        if (window.testRunner)
     112            testRunner.notifyDone();
     113    }, function() {
     114        if (window.testRunner)
     115            testRunner.notifyDone();
     116    });
     117});
    113118</script>
    114119</body>
  • trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue-3-levels.html

    r246385 r246390  
    107107    const commandBuffer = commandEncoder.finish();
    108108    device.getQueue().submit([commandBuffer]);
    109 
    110     if (window.testRunner)
    111         testRunner.notifyDone();
    112109}
    113110if (window.testRunner)
    114111    testRunner.waitUntilDone();
    115 window.addEventListener("load", start);
     112window.addEventListener("load", function() {
     113    start().then(function() {
     114        if (window.testRunner)
     115            testRunner.notifyDone();
     116    }, function() {
     117        if (window.testRunner)
     118            testRunner.notifyDone();
     119    });
     120});
    116121</script>
    117122</body>
  • trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue.html

    r246385 r246390  
    9999    const commandBuffer = commandEncoder.finish();
    100100    device.getQueue().submit([commandBuffer]);
    101 
    102     if (window.testRunner)
    103         testRunner.notifyDone();
    104101}
    105102if (window.testRunner)
    106103    testRunner.waitUntilDone();
    107 window.addEventListener("load", start);
     104window.addEventListener("load", function() {
     105    start().then(function() {
     106        if (window.testRunner)
     107            testRunner.notifyDone();
     108    }, function() {
     109        if (window.testRunner)
     110            testRunner.notifyDone();
     111    });
     112});
    108113</script>
    109114</body>
  • trunk/LayoutTests/webgpu/propertyresolver/ander.html

    r246385 r246390  
    9595    const commandBuffer = commandEncoder.finish();
    9696    device.getQueue().submit([commandBuffer]);
    97 
    98     if (window.testRunner)
    99         testRunner.notifyDone();
    10097}
    10198if (window.testRunner)
    10299    testRunner.waitUntilDone();
    103 window.addEventListener("load", start);
     100window.addEventListener("load", function() {
     101    start().then(function() {
     102        if (window.testRunner)
     103            testRunner.notifyDone();
     104    }, function() {
     105        if (window.testRunner)
     106            testRunner.notifyDone();
     107    });
     108});
    104109</script>
    105110</body>
  • trunk/LayoutTests/webgpu/propertyresolver/getter.html

    r246385 r246390  
    9191    const commandBuffer = commandEncoder.finish();
    9292    device.getQueue().submit([commandBuffer]);
    93 
    94     if (window.testRunner)
    95         testRunner.notifyDone();
    9693}
    9794if (window.testRunner)
    9895    testRunner.waitUntilDone();
    99 window.addEventListener("load", start);
     96window.addEventListener("load", function() {
     97    start().then(function() {
     98        if (window.testRunner)
     99            testRunner.notifyDone();
     100    }, function() {
     101        if (window.testRunner)
     102            testRunner.notifyDone();
     103    });
     104});
    100105</script>
    101106</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-abstract-lvalue.html

    r246385 r246390  
    104104    const commandBuffer = commandEncoder.finish();
    105105    device.getQueue().submit([commandBuffer]);
    106 
    107     if (window.testRunner)
    108         testRunner.notifyDone();
    109106}
    110107if (window.testRunner)
    111108    testRunner.waitUntilDone();
    112 window.addEventListener("load", start);
     109window.addEventListener("load", function() {
     110    start().then(function() {
     111        if (window.testRunner)
     112            testRunner.notifyDone();
     113    }, function() {
     114        if (window.testRunner)
     115            testRunner.notifyDone();
     116    });
     117});
    113118</script>
    114119</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html

    r246385 r246390  
    107107    const commandBuffer = commandEncoder.finish();
    108108    device.getQueue().submit([commandBuffer]);
    109 
    110     if (window.testRunner)
    111         testRunner.notifyDone();
    112109}
    113110if (window.testRunner)
    114111    testRunner.waitUntilDone();
    115 window.addEventListener("load", start);
     112window.addEventListener("load", function() {
     113    start().then(function() {
     114        if (window.testRunner)
     115            testRunner.notifyDone();
     116    }, function() {
     117        if (window.testRunner)
     118            testRunner.notifyDone();
     119    });
     120});
    116121</script>
    117122</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue.html

    r246385 r246390  
    9999    const commandBuffer = commandEncoder.finish();
    100100    device.getQueue().submit([commandBuffer]);
    101 
    102     if (window.testRunner)
    103         testRunner.notifyDone();
    104101}
    105102if (window.testRunner)
    106103    testRunner.waitUntilDone();
    107 window.addEventListener("load", start);
     104window.addEventListener("load", function() {
     105    start().then(function() {
     106        if (window.testRunner)
     107            testRunner.notifyDone();
     108    }, function() {
     109        if (window.testRunner)
     110            testRunner.notifyDone();
     111    });
     112});
    108113</script>
    109114</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-ander.html

    r246385 r246390  
    9595    const commandBuffer = commandEncoder.finish();
    9696    device.getQueue().submit([commandBuffer]);
    97 
    98     if (window.testRunner)
    99         testRunner.notifyDone();
    10097}
    10198if (window.testRunner)
    10299    testRunner.waitUntilDone();
    103 window.addEventListener("load", start);
     100window.addEventListener("load", function() {
     101    start().then(function() {
     102        if (window.testRunner)
     103            testRunner.notifyDone();
     104    }, function() {
     105        if (window.testRunner)
     106            testRunner.notifyDone();
     107    });
     108});
    104109</script>
    105110</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-getter.html

    r246385 r246390  
    9090    const commandBuffer = commandEncoder.finish();
    9191    device.getQueue().submit([commandBuffer]);
    92 
    93     if (window.testRunner)
    94         testRunner.notifyDone();
    9592}
    9693if (window.testRunner)
    9794    testRunner.waitUntilDone();
    98 window.addEventListener("load", start);
     95window.addEventListener("load", function() {
     96    start().then(function() {
     97        if (window.testRunner)
     98            testRunner.notifyDone();
     99    }, function() {
     100        if (window.testRunner)
     101            testRunner.notifyDone();
     102    });
     103});
    99104</script>
    100105</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html

    r246385 r246390  
    122122    const commandBuffer = commandEncoder.finish();
    123123    device.getQueue().submit([commandBuffer]);
    124 
    125     if (window.testRunner)
    126         testRunner.notifyDone();
    127124}
    128125if (window.testRunner)
    129126    testRunner.waitUntilDone();
    130 window.addEventListener("load", start);
     127window.addEventListener("load", function() {
     128    start().then(function() {
     129        if (window.testRunner)
     130            testRunner.notifyDone();
     131    }, function() {
     132        if (window.testRunner)
     133            testRunner.notifyDone();
     134    });
     135});
    131136</script>
    132137</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue.html

    r246385 r246390  
    109109    const commandBuffer = commandEncoder.finish();
    110110    device.getQueue().submit([commandBuffer]);
    111 
    112     if (window.testRunner)
    113         testRunner.notifyDone();
    114111}
    115112if (window.testRunner)
    116113    testRunner.waitUntilDone();
    117 window.addEventListener("load", start);
     114window.addEventListener("load", function() {
     115    start().then(function() {
     116        if (window.testRunner)
     117            testRunner.notifyDone();
     118    }, function() {
     119        if (window.testRunner)
     120            testRunner.notifyDone();
     121    });
     122});
    118123</script>
    119124</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-lvalue.html

    r246385 r246390  
    104104    const commandBuffer = commandEncoder.finish();
    105105    device.getQueue().submit([commandBuffer]);
    106 
    107     if (window.testRunner)
    108         testRunner.notifyDone();
    109106}
    110107if (window.testRunner)
    111108    testRunner.waitUntilDone();
    112 window.addEventListener("load", start);
     109window.addEventListener("load", function() {
     110    start().then(function() {
     111        if (window.testRunner)
     112            testRunner.notifyDone();
     113    }, function() {
     114        if (window.testRunner)
     115            testRunner.notifyDone();
     116    });
     117});
    113118</script>
    114119</body>
  • trunk/LayoutTests/webgpu/propertyresolver/indexer-setter.html

    r246385 r246390  
    107107    const commandBuffer = commandEncoder.finish();
    108108    device.getQueue().submit([commandBuffer]);
    109 
    110     if (window.testRunner)
    111         testRunner.notifyDone();
    112109}
    113110if (window.testRunner)
    114111    testRunner.waitUntilDone();
    115 window.addEventListener("load", start);
     112window.addEventListener("load", function() {
     113    start().then(function() {
     114        if (window.testRunner)
     115            testRunner.notifyDone();
     116    }, function() {
     117        if (window.testRunner)
     118            testRunner.notifyDone();
     119    });
     120});
    116121</script>
    117122</body>
  • trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html

    r246385 r246390  
    122122    const commandBuffer = commandEncoder.finish();
    123123    device.getQueue().submit([commandBuffer]);
    124 
    125     if (window.testRunner)
    126         testRunner.notifyDone();
    127124}
    128125if (window.testRunner)
    129126    testRunner.waitUntilDone();
    130 window.addEventListener("load", start);
     127window.addEventListener("load", function() {
     128    start().then(function() {
     129        if (window.testRunner)
     130            testRunner.notifyDone();
     131    }, function() {
     132        if (window.testRunner)
     133            testRunner.notifyDone();
     134    });
     135});
    131136</script>
    132137</body>
  • trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue.html

    r246385 r246390  
    109109    const commandBuffer = commandEncoder.finish();
    110110    device.getQueue().submit([commandBuffer]);
    111 
    112     if (window.testRunner)
    113         testRunner.notifyDone();
    114111}
    115112if (window.testRunner)
    116113    testRunner.waitUntilDone();
    117 window.addEventListener("load", start);
     114window.addEventListener("load", function() {
     115    start().then(function() {
     116        if (window.testRunner)
     117            testRunner.notifyDone();
     118    }, function() {
     119        if (window.testRunner)
     120            testRunner.notifyDone();
     121    });
     122});
    118123</script>
    119124</body>
  • trunk/LayoutTests/webgpu/propertyresolver/setter-lvalue.html

    r246385 r246390  
    104104    const commandBuffer = commandEncoder.finish();
    105105    device.getQueue().submit([commandBuffer]);
    106 
    107     if (window.testRunner)
    108         testRunner.notifyDone();
    109106}
    110107if (window.testRunner)
    111108    testRunner.waitUntilDone();
    112 window.addEventListener("load", start);
     109window.addEventListener("load", function() {
     110    start().then(function() {
     111        if (window.testRunner)
     112            testRunner.notifyDone();
     113    }, function() {
     114        if (window.testRunner)
     115            testRunner.notifyDone();
     116    });
     117});
    113118</script>
    114119</body>
  • trunk/LayoutTests/webgpu/simple-triangle-strip.html

    r242974 r246390  
    5959
    6060    queue.submit([commandEncoder.finish()]);
    61 
    62     requestAnimationFrame(() => {
    63         if (window.testRunner)
    64             testRunner.notifyDone();
    65     });
    6661}
    6762
    68 test();
     63test().then(function() {
     64    if (window.testRunner)
     65        testRunner.notifyDone();
     66}, function() {
     67    if (window.testRunner)
     68        testRunner.notifyDone();
     69});
    6970</script>
  • trunk/LayoutTests/webgpu/texture-triangle-strip.html

    r246217 r246390  
    195195    textureCoordBuffer.destroy();
    196196    texture.destroy();
    197 
     197}
     198
     199test().then(function() {
    198200    if (window.testRunner)
    199201        testRunner.notifyDone();
    200 }
    201 
    202 test();
     202}, function() {
     203    if (window.testRunner)
     204        testRunner.notifyDone();
     205});
    203206</script>
  • trunk/LayoutTests/webgpu/vertex-buffer-triangle-strip.html

    r246217 r246390  
    9292    queue.submit([commandEncoder.finish()]);
    9393    vertexBuffer.destroy();
     94}
    9495
     96test().then(function() {
    9597    if (window.testRunner)
    9698        testRunner.notifyDone();
    97 }
    98 
    99 test();
     99}, function() {
     100    if (window.testRunner)
     101        testRunner.notifyDone();
     102});
    100103</script>
  • trunk/LayoutTests/webgpu/viewport-scissor-rect-triangle-strip.html

    r244093 r246390  
    9595
    9696    queue.submit([commandEncoder.finish()]);
    97 
    98     requestAnimationFrame(() => {
    99         if (window.testRunner)
    100             testRunner.notifyDone();
    101     });
    10297}
    10398
    104 test();
     99test().then(function() {
     100    if (window.testRunner)
     101        testRunner.notifyDone();
     102}, function() {
     103    if (window.testRunner)
     104        testRunner.notifyDone();
     105});
    105106</script>
  • trunk/LayoutTests/webgpu/whlsl-arbitrary-vertex-attribute-locations.html

    r245905 r246390  
    112112    const commandBuffer = commandEncoder.finish();
    113113    device.getQueue().submit([commandBuffer]);
    114 
    115     if (window.testRunner)
    116         testRunner.notifyDone();
    117114}
    118115if (window.testRunner)
    119116    testRunner.waitUntilDone();
    120 window.addEventListener("load", start);
     117window.addEventListener("load", function() {
     118    start().then(function() {
     119        if (window.testRunner)
     120            testRunner.notifyDone();
     121    }, function() {
     122        if (window.testRunner)
     123            testRunner.notifyDone();
     124    });
     125});
    121126</script>
    122127</body>
  • trunk/LayoutTests/webgpu/whlsl-dereference-pointer-should-type-check.html

    r245905 r246390  
    118118    const commandBuffer = commandEncoder.finish();
    119119    device.getQueue().submit([commandBuffer]);
    120 
    121     if (window.testRunner)
    122         testRunner.notifyDone();
    123120}
    124121if (window.testRunner)
    125122    testRunner.waitUntilDone();
    126 window.addEventListener("load", start);
     123window.addEventListener("load", function() {
     124    start().then(function() {
     125        if (window.testRunner)
     126            testRunner.notifyDone();
     127    }, function() {
     128        if (window.testRunner)
     129            testRunner.notifyDone();
     130    });
     131});
    127132</script>
    128133</body>
  • trunk/LayoutTests/webgpu/whlsl-do-while-loop-break.html

    r246121 r246390  
    122122    const commandBuffer = commandEncoder.finish();
    123123    device.getQueue().submit([commandBuffer]);
    124 
    125     if (window.testRunner)
    126         testRunner.notifyDone();
    127124}
    128125if (window.testRunner)
    129126    testRunner.waitUntilDone();
    130 window.addEventListener("load", start);
     127window.addEventListener("load", function() {
     128    start().then(function() {
     129        if (window.testRunner)
     130            testRunner.notifyDone();
     131    }, function() {
     132        if (window.testRunner)
     133            testRunner.notifyDone();
     134    });
     135});
    131136</script>
    132137</body>
  • trunk/LayoutTests/webgpu/whlsl-do-while-loop-continue.html

    r246121 r246390  
    124124    const commandBuffer = commandEncoder.finish();
    125125    device.getQueue().submit([commandBuffer]);
    126 
    127     if (window.testRunner)
    128         testRunner.notifyDone();
    129126}
    130127if (window.testRunner)
    131128    testRunner.waitUntilDone();
    132 window.addEventListener("load", start);
     129window.addEventListener("load", function() {
     130    start().then(function() {
     131        if (window.testRunner)
     132            testRunner.notifyDone();
     133    }, function() {
     134        if (window.testRunner)
     135            testRunner.notifyDone();
     136    });
     137});
    133138</script>
    134139</body>
  • trunk/LayoutTests/webgpu/whlsl-do-while-loop.html

    r246121 r246390  
    119119    const commandBuffer = commandEncoder.finish();
    120120    device.getQueue().submit([commandBuffer]);
    121 
    122     if (window.testRunner)
    123         testRunner.notifyDone();
    124121}
    125122if (window.testRunner)
    126123    testRunner.waitUntilDone();
    127 window.addEventListener("load", start);
     124window.addEventListener("load", function() {
     125    start().then(function() {
     126        if (window.testRunner)
     127            testRunner.notifyDone();
     128    }, function() {
     129        if (window.testRunner)
     130            testRunner.notifyDone();
     131    });
     132});
    128133</script>
    129134</body>
  • trunk/LayoutTests/webgpu/whlsl-dont-crash-parsing-enum.html

    r245905 r246390  
    113113    const commandBuffer = commandEncoder.finish();
    114114    device.getQueue().submit([commandBuffer]);
    115 
    116     if (window.testRunner)
    117         testRunner.notifyDone();
    118115}
    119116if (window.testRunner)
    120117    testRunner.waitUntilDone();
    121 window.addEventListener("load", start);
     118window.addEventListener("load", function() {
     119    start().then(function() {
     120        if (window.testRunner)
     121            testRunner.notifyDone();
     122    }, function() {
     123        if (window.testRunner)
     124            testRunner.notifyDone();
     125    });
     126});
    122127</script>
    123128</body>
  • trunk/LayoutTests/webgpu/whlsl-dot-expressions.html

    r245905 r246390  
    113113    const commandBuffer = commandEncoder.finish();
    114114    device.getQueue().submit([commandBuffer]);
    115 
    116     if (window.testRunner)
    117         testRunner.notifyDone();
    118115}
    119116if (window.testRunner)
    120117    testRunner.waitUntilDone();
    121 window.addEventListener("load", start);
     118window.addEventListener("load", function() {
     119    start().then(function() {
     120        if (window.testRunner)
     121            testRunner.notifyDone();
     122    }, function() {
     123        if (window.testRunner)
     124            testRunner.notifyDone();
     125    });
     126});
    122127</script>
    123128</body>
  • trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-2.html

    r245945 r246390  
    142142    const commandBuffer = commandEncoder.finish();
    143143    device.getQueue().submit([commandBuffer]);
    144 
    145     if (window.testRunner)
    146         testRunner.notifyDone();
    147144}
    148145if (window.testRunner)
    149146    testRunner.waitUntilDone();
    150 window.addEventListener("load", start);
     147window.addEventListener("load", function() {
     148    start().then(function() {
     149        if (window.testRunner)
     150            testRunner.notifyDone();
     151    }, function() {
     152        if (window.testRunner)
     153            testRunner.notifyDone();
     154    });
     155});
    151156</script>
    152157</body>
  • trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-3.html

    r245945 r246390  
    143143    const commandBuffer = commandEncoder.finish();
    144144    device.getQueue().submit([commandBuffer]);
    145 
    146     if (window.testRunner)
    147         testRunner.notifyDone();
    148145}
    149146if (window.testRunner)
    150147    testRunner.waitUntilDone();
    151 window.addEventListener("load", start);
     148window.addEventListener("load", function() {
     149    start().then(function() {
     150        if (window.testRunner)
     151            testRunner.notifyDone();
     152    }, function() {
     153        if (window.testRunner)
     154            testRunner.notifyDone();
     155    });
     156});
    152157</script>
    153158</body>
  • trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime.html

    r245945 r246390  
    142142    const commandBuffer = commandEncoder.finish();
    143143    device.getQueue().submit([commandBuffer]);
    144 
    145     if (window.testRunner)
    146         testRunner.notifyDone();
    147144}
    148145if (window.testRunner)
    149146    testRunner.waitUntilDone();
    150 window.addEventListener("load", start);
     147window.addEventListener("load", function() {
     148    start().then(function() {
     149        if (window.testRunner)
     150            testRunner.notifyDone();
     151    }, function() {
     152        if (window.testRunner)
     153            testRunner.notifyDone();
     154    });
     155});
    151156</script>
    152157</body>
  • trunk/LayoutTests/webgpu/whlsl-loops-break.html

    r246121 r246390  
    123123    const commandBuffer = commandEncoder.finish();
    124124    device.getQueue().submit([commandBuffer]);
    125 
    126     if (window.testRunner)
    127         testRunner.notifyDone();
    128125}
    129126if (window.testRunner)
    130127    testRunner.waitUntilDone();
    131 window.addEventListener("load", start);
     128window.addEventListener("load", function() {
     129    start().then(function() {
     130        if (window.testRunner)
     131            testRunner.notifyDone();
     132    }, function() {
     133        if (window.testRunner)
     134            testRunner.notifyDone();
     135    });
     136});
    132137</script>
    133138</body>
  • trunk/LayoutTests/webgpu/whlsl-loops-continue.html

    r246121 r246390  
    123123    const commandBuffer = commandEncoder.finish();
    124124    device.getQueue().submit([commandBuffer]);
    125 
    126     if (window.testRunner)
    127         testRunner.notifyDone();
    128125}
    129126if (window.testRunner)
    130127    testRunner.waitUntilDone();
    131 window.addEventListener("load", start);
     128window.addEventListener("load", function() {
     129    start().then(function() {
     130        if (window.testRunner)
     131            testRunner.notifyDone();
     132    }, function() {
     133        if (window.testRunner)
     134            testRunner.notifyDone();
     135    });
     136});
    132137</script>
    133138</body>
  • trunk/LayoutTests/webgpu/whlsl-loops.html

    r246121 r246390  
    119119    const commandBuffer = commandEncoder.finish();
    120120    device.getQueue().submit([commandBuffer]);
    121 
    122     if (window.testRunner)
    123         testRunner.notifyDone();
    124121}
    125122if (window.testRunner)
    126123    testRunner.waitUntilDone();
    127 window.addEventListener("load", start);
     124window.addEventListener("load", function() {
     125    start().then(function() {
     126        if (window.testRunner)
     127            testRunner.notifyDone();
     128    }, function() {
     129        if (window.testRunner)
     130            testRunner.notifyDone();
     131    });
     132});
    128133</script>
    129134</body>
  • trunk/LayoutTests/webgpu/whlsl-nested-dot-expression-rvalue.html

    r245905 r246390  
    127127    const commandBuffer = commandEncoder.finish();
    128128    device.getQueue().submit([commandBuffer]);
    129 
    130     if (window.testRunner)
    131         testRunner.notifyDone();
    132129}
    133130if (window.testRunner)
    134131    testRunner.waitUntilDone();
    135 window.addEventListener("load", start);
     132window.addEventListener("load", function() {
     133    start().then(function() {
     134        if (window.testRunner)
     135            testRunner.notifyDone();
     136    }, function() {
     137        if (window.testRunner)
     138            testRunner.notifyDone();
     139    });
     140});
    136141</script>
    137142</body>
  • trunk/LayoutTests/webgpu/whlsl-nested-loop.html

    r246121 r246390  
    155155    const commandBuffer = commandEncoder.finish();
    156156    device.getQueue().submit([commandBuffer]);
    157 
    158     if (window.testRunner)
    159         testRunner.notifyDone();
    160157}
    161158if (window.testRunner)
    162159    testRunner.waitUntilDone();
    163 window.addEventListener("load", start);
     160window.addEventListener("load", function() {
     161    start().then(function() {
     162        if (window.testRunner)
     163            testRunner.notifyDone();
     164    }, function() {
     165        if (window.testRunner)
     166            testRunner.notifyDone();
     167    });
     168});
    164169</script>
    165170</body>
  • trunk/LayoutTests/webgpu/whlsl-return-local-variable.html

    r245945 r246390  
    120120    const commandBuffer = commandEncoder.finish();
    121121    device.getQueue().submit([commandBuffer]);
    122 
    123     if (window.testRunner)
    124         testRunner.notifyDone();
    125122}
    126123if (window.testRunner)
    127124    testRunner.waitUntilDone();
    128 window.addEventListener("load", start);
     125window.addEventListener("load", function() {
     126    start().then(function() {
     127        if (window.testRunner)
     128            testRunner.notifyDone();
     129    }, function() {
     130        if (window.testRunner)
     131            testRunner.notifyDone();
     132    });
     133});
    129134</script>
    130135</body>
  • trunk/LayoutTests/webgpu/whlsl-store-to-property-updates-properly.html

    r245973 r246390  
    135135    const commandBuffer = commandEncoder.finish();
    136136    device.getQueue().submit([commandBuffer]);
    137 
    138     if (window.testRunner)
    139         testRunner.notifyDone();
    140137}
    141138if (window.testRunner)
    142139    testRunner.waitUntilDone();
    143 window.addEventListener("load", start);
     140window.addEventListener("load", function() {
     141    start().then(function() {
     142        if (window.testRunner)
     143            testRunner.notifyDone();
     144    }, function() {
     145        if (window.testRunner)
     146            testRunner.notifyDone();
     147    });
     148});
    144149</script>
    145150</body>
  • trunk/LayoutTests/webgpu/whlsl-while-loop-break.html

    r246121 r246390  
    125125    const commandBuffer = commandEncoder.finish();
    126126    device.getQueue().submit([commandBuffer]);
    127 
    128     if (window.testRunner)
    129         testRunner.notifyDone();
    130127}
    131128if (window.testRunner)
    132129    testRunner.waitUntilDone();
    133 window.addEventListener("load", start);
     130window.addEventListener("load", function() {
     131    start().then(function() {
     132        if (window.testRunner)
     133            testRunner.notifyDone();
     134    }, function() {
     135        if (window.testRunner)
     136            testRunner.notifyDone();
     137    });
     138});
    134139</script>
    135140</body>
  • trunk/LayoutTests/webgpu/whlsl-while-loop-continue.html

    r246121 r246390  
    125125    const commandBuffer = commandEncoder.finish();
    126126    device.getQueue().submit([commandBuffer]);
    127 
    128     if (window.testRunner)
    129         testRunner.notifyDone();
    130127}
    131128if (window.testRunner)
    132129    testRunner.waitUntilDone();
    133 window.addEventListener("load", start);
     130window.addEventListener("load", function() {
     131    start().then(function() {
     132        if (window.testRunner)
     133            testRunner.notifyDone();
     134    }, function() {
     135        if (window.testRunner)
     136            testRunner.notifyDone();
     137    });
     138});
    134139</script>
    135140</body>
  • trunk/LayoutTests/webgpu/whlsl-zero-initialize-values-2.html

    r246273 r246390  
    141141    const commandBuffer = commandEncoder.finish();
    142142    device.getQueue().submit([commandBuffer]);
    143 
    144     if (window.testRunner)
    145         testRunner.notifyDone();
    146143}
    147144if (window.testRunner)
    148145    testRunner.waitUntilDone();
    149 window.addEventListener("load", start);
     146window.addEventListener("load", function() {
     147    start().then(function() {
     148        if (window.testRunner)
     149            testRunner.notifyDone();
     150    }, function() {
     151        if (window.testRunner)
     152            testRunner.notifyDone();
     153    });
     154});
    150155</script>
    151156</body>
  • trunk/LayoutTests/webgpu/whlsl-zero-initialize-values.html

    r246273 r246390  
    124124    const commandBuffer = commandEncoder.finish();
    125125    device.getQueue().submit([commandBuffer]);
    126 
    127     if (window.testRunner)
    128         testRunner.notifyDone();
    129126}
    130127if (window.testRunner)
    131128    testRunner.waitUntilDone();
    132 window.addEventListener("load", start);
     129window.addEventListener("load", function() {
     130    start().then(function() {
     131        if (window.testRunner)
     132            testRunner.notifyDone();
     133    }, function() {
     134        if (window.testRunner)
     135            testRunner.notifyDone();
     136    });
     137});
    133138</script>
    134139</body>
  • trunk/LayoutTests/webgpu/whlsl.html

    r245905 r246390  
    108108    const commandBuffer = commandEncoder.finish();
    109109    device.getQueue().submit([commandBuffer]);
    110 
    111     if (window.testRunner)
    112         testRunner.notifyDone();
    113110}
    114111if (window.testRunner)
    115112    testRunner.waitUntilDone();
    116 window.addEventListener("load", start);
     113window.addEventListener("load", function() {
     114    start().then(function() {
     115        if (window.testRunner)
     116            testRunner.notifyDone();
     117    }, function() {
     118        if (window.testRunner)
     119            testRunner.notifyDone();
     120    });
     121});
    117122</script>
    118123</body>
Note: See TracChangeset for help on using the changeset viewer.