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

Side by Side Diff: tools/telemetry/unittest_data/interaction_enabled_page.html

Issue 273103003: Add responsiveness_metric for timeline_based_measurement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable timeline_based_measurement smoke test for responsive on windows platform 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
« no previous file with comments | « tools/telemetry/telemetry/web_perf/timeline_based_measurement_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css"> 4 <style type="text/css">
5 body { height: 1500px; } 5 body { height: 1500px; }
6 #center { 6 #center {
7 position: fixed; 7 position: fixed;
8 left: 40%;; 8 left: 40%;;
9 width: 50%; 9 width: 50%;
10 height: 250px; 10 height: 250px;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }); 46 });
47 </script> 47 </script>
48 </head> 48 </head>
49 <body> 49 <body>
50 <div id="center"> 50 <div id="center">
51 This is something in the middle. 51 This is something in the middle.
52 </div> 52 </div>
53 <div id="drawer"> 53 <div id="drawer">
54 This is a drawer. 54 This is a drawer.
55 </div> 55 </div>
56 <script>
57 'use strict';
58 var jankMs = 100;
59 function jankThread() {
60 console.time('Interaction.JankThreadJSRun/is_responsive');
61 var startTime = window.performance.now();
62 var currTime = startTime;
63 while (currTime - startTime < jankMs) {
64 var currTime = window.performance.now();
65 }
66 console.timeEnd('Interaction.JankThreadJSRun/is_responsive');
67 }
68 var drawer = document.getElementById('drawer');
69 drawer.addEventListener('click', jankThread);
70 </script>
56 </body> 71 </body>
57 </html> 72 </html>
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/web_perf/timeline_based_measurement_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698