Changeset 268488 in webkit
- Timestamp:
- Oct 14, 2020 2:19:02 PM (3 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268487 r268488 1 2020-10-14 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION (r267744): [ Debug WK2 ] fast/css-custom-paint/out-of-memory-while-adding-worklet-module.html is a constant timeout 4 https://bugs.webkit.org/show_bug.cgi?id=217549 5 6 Reviewed by Sam Weinig. 7 8 After r267744, Worklet.addModule() returns a promise and no longer throws exceptions. 9 Update the test accordingly to expect that a promise gets rejected with an out of 10 memory error, instead of expecting an exception to be thrown. 11 12 * fast/css-custom-paint/out-of-memory-while-adding-worklet-module-expected.txt: 13 * fast/css-custom-paint/script-tests/out-of-memory-while-adding-worklet-module.js: 14 1 15 2020-10-14 Megan Gardner <megan_gardner@apple.com> 2 16 -
trunk/LayoutTests/TestExpectations
r268403 r268488 4520 4520 webkit.org/b/217054 fast/layoutformattingcontext/horizontal-sizing-with-trailing-letter-spacing.html [ Skip ] 4521 4521 4522 webkit.org/b/217618 [ Debug ] fast/css-custom-paint/out-of-memory-while-adding-worklet-module.html [ Pass Timeout ] -
trunk/LayoutTests/fast/css-custom-paint/out-of-memory-while-adding-worklet-module-expected.txt
r266447 r268488 1 1 PASS: threw a RangeError: Out of memory exception -
trunk/LayoutTests/fast/css-custom-paint/script-tests/out-of-memory-while-adding-worklet-module.js
r266447 r268488 17 17 } 18 18 19 async function runTest() { 20 let promises = [] 21 try { 22 for (let i = 0; i < 5000; i++) 23 await CSS.paintWorklet.addModule(''); 24 } catch (e) { 25 if (e != "RangeError: Out of memory") 26 document.write("FAIL: expect: 'RangeError: Out of memory', actual: '" + e + "'"); 27 else 28 document.write("PASS: threw a RangeError: Out of memory exception"); 29 } 30 } 31 19 32 var exception; 20 33 useAllMemory(); 21 try { 22 for (let i = 0; i < 5000; i++) { 23 CSS.paintWorklet.addModule(''); 24 } 25 } catch (e) { 26 exception = e; 27 } 28 29 if (exception != "RangeError: Out of memory") 30 throw "FAIL: expect: 'RangeError: Out of memory', actual: '" + exception + "'"; 34 runTest(); 31 35 }
Note: See TracChangeset
for help on using the changeset viewer.