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

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: 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 'stringifyDOMObject(self.performance.memory);',
15 ]; 15 ];
16 16
17 var t = async_test('window.performance.memory in shared workers'); 17 var t = async_test('window.performance.memory in shared workers');
18 t.step(function() { 18 t.step(function() {
19 19
20 var worker = new SharedWorker("/w3c/webperf/resources/worker.js"); 20 var worker = new SharedWorker("/w3c/webperf/resources/worker.js");
21 worker.port.postMessage(tests); 21 worker.port.postMessage(tests);
22 22
23 worker.port.onmessage = t.step_func(function(event) { 23 worker.port.onmessage = t.step_func(function(event) {
24 var results = event.data; 24 var results = event.data;
(...skipping 11 matching lines...) Expand all
36 </script> 36 </script>
37 </head> 37 </head>
38 <body> 38 <body>
39 <h1>Description</h1> 39 <h1>Description</h1>
40 <p>This test validates that performance.memory exists in shared workers.</p> 40 <p>This test validates that performance.memory exists in shared workers.</p>
41 41
42 <div id="log"></div> 42 <div id="log"></div>
43 43
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698