Title: [195672] trunk/LayoutTests
Revision
195672
Author
[email protected]
Date
2016-01-27 07:35:58 -0800 (Wed, 27 Jan 2016)

Log Message

[GTK] Problem running promises code in workers
https://bugs.webkit.org/show_bug.cgi?id=152340

Reviewed by Carlos Garcia Campos.

Test file that creates two testharness promise tests. Each test creates 10000 promises, pushes them into an
array and vends them in a timeout.

* js/promises-tests/promises-in-workers-expected.txt: Added.
* js/promises-tests/promises-in-workers.html: Added.
* js/promises-tests/promises-in-workers.js: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (195671 => 195672)


--- trunk/LayoutTests/ChangeLog	2016-01-27 15:20:03 UTC (rev 195671)
+++ trunk/LayoutTests/ChangeLog	2016-01-27 15:35:58 UTC (rev 195672)
@@ -1,3 +1,17 @@
+2016-01-27  Xabier Rodriguez Calvar  <[email protected]> and Youenn Fablet  <[email protected]>
+
+        [GTK] Problem running promises code in workers
+        https://bugs.webkit.org/show_bug.cgi?id=152340
+
+        Reviewed by Carlos Garcia Campos.
+
+        Test file that creates two testharness promise tests. Each test creates 10000 promises, pushes them into an
+        array and vends them in a timeout.
+
+        * js/promises-tests/promises-in-workers-expected.txt: Added.
+        * js/promises-tests/promises-in-workers.html: Added.
+        * js/promises-tests/promises-in-workers.js: Added.
+
 2016-01-26  Jer Noble  <[email protected]>
 
         Calling video.controls=true during a scrub operation cancels scrub.

Added: trunk/LayoutTests/js/promises-tests/promises-in-workers-expected.txt (0 => 195672)


--- trunk/LayoutTests/js/promises-tests/promises-in-workers-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/js/promises-tests/promises-in-workers-expected.txt	2016-01-27 15:35:58 UTC (rev 195672)
@@ -0,0 +1,4 @@
+
+PASS Test 
+PASS Test 
+

Added: trunk/LayoutTests/js/promises-tests/promises-in-workers.html (0 => 195672)


--- trunk/LayoutTests/js/promises-tests/promises-in-workers.html	                        (rev 0)
+++ trunk/LayoutTests/js/promises-tests/promises-in-workers.html	2016-01-27 15:35:58 UTC (rev 195672)
@@ -0,0 +1,6 @@
+<script src=""
+<script src=""
+<script>
+'use strict';
+fetch_tests_from_worker(new Worker('promises-in-workers.js'));
+</script>

Added: trunk/LayoutTests/js/promises-tests/promises-in-workers.js (0 => 195672)


--- trunk/LayoutTests/js/promises-tests/promises-in-workers.js	                        (rev 0)
+++ trunk/LayoutTests/js/promises-tests/promises-in-workers.js	2016-01-27 15:35:58 UTC (rev 195672)
@@ -0,0 +1,21 @@
+'use strict';
+
+if (self.importScripts) {
+  self.importScripts('../../resources/testharness.js');
+}
+
+var a = [];
+
+// Changing from 2 to 1 makes the test pass.
+for (let i = 0; i < 2; i++) {
+  promise_test(t => {
+
+    for (let j = 0; j < 10000; j++)
+      a.push(new Promise(function() {}));
+
+    return new Promise(resolve => step_timeout(resolve, 500));
+
+  }, 'Test');
+}
+
+done();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to