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

Side by Side Diff: LayoutTests/fast/dom/Window/window-properties-performance.html

Issue 1171893004: bindings: Supports serializer for PerformanceTiming. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test for PerformanceTiming's serializer. Created 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/window-properties-performance-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <p>This test dumps all of the properties that are reachable from the window.perf ormance object, along with their types.</p> 1 <p>This test dumps all of the properties that are reachable from the window.perf ormance object, along with their types.</p>
2 <hr> 2 <hr>
3 <pre id="pre"></pre> 3 <pre id="pre"></pre>
4 4
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 var logBuffer = []; 9 var logBuffer = [];
10 function log(s) 10 function log(s)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 array.sort(); 84 array.sort();
85 for (var i = 0; i < array.length; i++) { 85 for (var i = 0; i < array.length; i++) {
86 var property = array[i]; 86 var property = array[i];
87 logValue(objectName + "." + property); 87 logValue(objectName + "." + property);
88 } 88 }
89 } 89 }
90 90
91 logValue('window.performance'); 91 logValue('window.performance');
92 window.performance.timing = 'timing is not replaceable'; 92 window.performance.timing = 'timing is not replaceable';
93 logValue('window.performance.timing'); 93 logValue('window.performance.timing');
94 // PerformanceTiming supports a serializer.
95 var jsonizedTiming = JSON.parse(JSON.stringify(window.performance.timing));
96 logValue('jsonizedTiming');
94 window.performance.navigation = 'navigation is not replaceable'; 97 window.performance.navigation = 'navigation is not replaceable';
95 logValue('window.performance.navigation'); 98 logValue('window.performance.navigation');
96 window.performance = 'performance is replaceable'; 99 window.performance = 'performance is replaceable';
97 logValue('window.performance'); 100 logValue('window.performance');
98 flushLog(); 101 flushLog();
99 </script> 102 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/window-properties-performance-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698