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

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: Address reviewer comments 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 <pre id='console'></pre>
3
4 <script>
5 function log(message)
6 {
7 document.getElementById('console').appendChild(document.createTextNode(messa ge + "\n"));
8 }
9
10 function runTest() {
11 var worker = new Worker('resources/worker-navigator-hardware-concurrency.js' );
12 worker.onmessage = function(event) {
13 if (event.data == 'DONE') {
14 if (window.testRunner)
15 testRunner.notifyDone();
16 } else
17 log(event.data);
18 }
19 worker.postMessage('');
20 }
21
22 if (window.testRunner) {
23 testRunner.dumpAsText();
24 testRunner.waitUntilDone();
25 }
26 window.onload = runTest;
27 </script>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698