Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html

Issue 262723002: Implement navigator.hardwareConcurrency (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename to navigator.hardwareConcurrency Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
esprehn 2014/06/05 01:06:53 Leave out <html>, <head> and <body>.
3 <body>
4 <pre id='console'></pre>
esprehn 2014/06/05 01:06:53 You don't need this if you use js-test.js
5
6 <script>
7 function log(message)
8 {
9 document.getElementById('console').appendChild(document.createTextNode(messa ge + "\n"));
esprehn 2014/06/05 01:06:53 Why not just js-test.js for this? js-test has asyn
10 }
11
12 function runTest() {
13 var worker = new Worker('resources/worker-navigator-hardware-concurrency.js' );
14 worker.onmessage = function(event) {
15 if (event.data == 'DONE') {
16 if (window.testRunner)
17 testRunner.notifyDone();
18 } else
19 log(event.data);
20 }
21 worker.postMessage('');
22 }
23
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.waitUntilDone();
27 }
28 window.onload = runTest;
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698