Changeset 50809 in webkit
- Timestamp:
- Nov 11, 2009 9:05:30 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r50800 r50809 1 2009-11-11 Eric Z. Ayers <zundel@google.com> 2 3 Reviewed by Timothy Hatcher. 4 5 Adds a test that dumps the timeline data for a simple script tag. 6 7 https://bugs.webkit.org/show_bug.cgi?id=31204 8 9 * inspector/inspector-test.js: 10 (onload): 11 * inspector/timeline-script-tag-1-expected.txt: Added. 12 * inspector/timeline-script-tag-1.html: Added. 13 * inspector/timeline-test.js: Added. 14 (retrieveTimelineData): 15 (): 16 (dumpTimelineRecords): 17 (printTimelineRecordProperties): 18 (isNonDeterministicProp): 19 (printProps): 20 (isTimelineOverheadRecord): 21 (markTimelineRecordAsOverhead): 22 (timelineAgentTypeToString): 23 (frontend_startTimelineProfiler.window.WebInspector.addRecordToTimeline): 24 (frontend_startTimelineProfiler): 25 (frontend_getTimelineResults): 26 (frontend_setup): 27 1 28 2009-11-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 29 -
trunk/LayoutTests/inspector/inspector-test.js
r50582 r50809 11 11 var ignoreLoad = window.location.href.indexOf("?reload") === -1; 12 12 if (ignoreLoad) { 13 // Start in a timer, as synchronous opening of web inspector may fail on Windows 13 14 setTimeout(function() { 14 15 if (window.layoutTestController) 15 16 layoutTestController.showWebInspector(); 16 window.location.href += "?reload";17 17 }, 0); 18 18 } … … 20 20 function onload() 21 21 { 22 if (ignoreLoad) 22 if (ignoreLoad) { 23 // Inject scripts into the frontend on the first pass. Some other logic may want to 24 // use them before the reload. 25 var toInject = []; 26 for (var name in window) { 27 if (name.indexOf("frontend_") === 0 && typeof window[name] === "function") 28 toInject.push(window[name].toString()); 29 } 30 // Invoke a setup method if it has been specified 31 if (window["frontend_setup"]) 32 toInject.push("frontend_setup();"); 33 34 evaluateInWebInspector(toInject.join("\n"), function(arg) { 35 window.location.href += "?reload"; 36 }); 23 37 return; 38 } 24 39 25 40 var outputElement = document.createElement("div"); … … 27 42 document.body.appendChild(outputElement); 28 43 29 var toInject = []; 30 for (var name in window) { 31 if (name.indexOf("frontend_") === 0 && typeof window[name] === "function") 32 toInject.push(window[name].toString()); 33 } 34 evaluateInWebInspector(toInject.join("\n"), doit); 44 // Make sure web inspector has settled down before executing user code 45 evaluateInWebInspector("true", doit); 35 46 36 47 // Make sure web inspector window is closed before the test is interrupted.
Note: See TracChangeset
for help on using the changeset viewer.