Skip to content
Permalink
Browse files
[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.


Canonical link: https://commits.webkit.org/171610@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
youennf committed Jan 27, 2016
1 parent 3663562 commit 812225301086176a8134ddb2090665778dd677f5
Showing 4 changed files with 45 additions and 0 deletions.
@@ -1,3 +1,17 @@
2016-01-27 Xabier Rodriguez Calvar <calvaris@igalia.com> and Youenn Fablet <youenn.fablet@crf.canon.fr>

[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 <jer.noble@apple.com>

Calling video.controls=true during a scrub operation cancels scrub.
@@ -0,0 +1,4 @@

PASS Test
PASS Test

@@ -0,0 +1,6 @@
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
'use strict';
fetch_tests_from_worker(new Worker('promises-in-workers.js'));
</script>
@@ -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();

0 comments on commit 8122253

Please sign in to comment.