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

Side by Side Diff: LayoutTests/http/tests/misc/performance-memory-in-shared-worker.html

Issue 821303006: bindings: Fixes layouttests when moving attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed performance memory tests and addressed review comments. Created 5 years, 11 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8" /> 4 <meta charset="utf-8" />
5 <title>window.performance.memory in shared workers</title> 5 <title>window.performance.memory in shared workers</title>
6 <script src="/w3c/resources/testharness.js"></script> 6 <script src="/w3c/resources/testharness.js"></script>
7 <script src="/w3c/resources/testharnessreport.js"></script> 7 <script src="/w3c/resources/testharnessreport.js"></script>
8 <link rel="stylesheet" href="/w3c/resources/testharness.css" /> 8 <link rel="stylesheet" href="/w3c/resources/testharness.css" />
9 <script> 9 <script>
10 10
11 var tests = [ 11 var tests = [
12 '"performance" in self;', 12 '"performance" in self;',
13 '"memory" in self.performance;', 13 '"memory" in self.performance;',
14 'JSON.stringify(self.performance.memory);', 14 ('JSON.stringify(' +
15 '{jsHeapSizeLimit: self.performance.memory.jsHeapSizeLimit,' +
16 ' totalJSHeapSize: self.performance.memory.totalJSHeapSize,' +
17 ' usedJSHeapSize: self.performance.memory.usedJSHeapSize});')
15 ]; 18 ];
16 19
17 var t = async_test('window.performance.memory in shared workers'); 20 var t = async_test('window.performance.memory in shared workers');
18 t.step(function() { 21 t.step(function() {
19 22
20 var worker = new SharedWorker("/w3c/webperf/resources/worker.js"); 23 var worker = new SharedWorker("/w3c/webperf/resources/worker.js");
21 worker.port.postMessage(tests); 24 worker.port.postMessage(tests);
22 25
23 worker.port.onmessage = t.step_func(function(event) { 26 worker.port.onmessage = t.step_func(function(event) {
24 var results = event.data; 27 var results = event.data;
(...skipping 11 matching lines...) Expand all
36 </script> 39 </script>
37 </head> 40 </head>
38 <body> 41 <body>
39 <h1>Description</h1> 42 <h1>Description</h1>
40 <p>This test validates that performance.memory exists in shared workers.</p> 43 <p>This test validates that performance.memory exists in shared workers.</p>
41 44
42 <div id="log"></div> 45 <div id="log"></div>
43 46
44 </body> 47 </body>
45 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698