Changeset 50830 in webkit
- Timestamp:
- Nov 11, 2009 11:51:11 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r50827 r50830 1 2009-11-11 Eric Z. Ayers <zundel@google.com> 2 3 Reviewed by Pavel Feldman. 4 5 Added a test of an externally loaded script tag for Inspector 6 timeline records. 7 Fixed identity comparisons. 8 9 https://bugs.webkit.org/show_bug.cgi?id=31365 10 11 * inspector/timeline-script-tag-1.html: 12 * inspector/timeline-script-tag-2-expected.txt: Added. 13 * inspector/timeline-script-tag-2.html: Added. 14 * inspector/timeline-script-tag-2.js: Added. 15 * inspector/timeline-test.js: 16 (): 17 (timelineAgentTypeToString): 18 1 19 2009-11-11 Antonio Gomes <tonikitoo@webkit.org> 2 20 -
trunk/LayoutTests/inspector/timeline-script-tag-1.html
r50809 r50830 11 11 for (var i = 0; i < numChildren; ++i) { 12 12 var child = record.children[i]; 13 if (child.type == timelineAgentRecordType.MarkTimeline14 && child.data.message == timelineMark13 if (child.type === timelineAgentRecordType.MarkTimeline 14 && child.data.message === timelineMark 15 15 && record.data.url.indexOf("timeline-script-tag-1.html") !== -1) { 16 16 … … 33 33 for (var i = 0; i < numChildren; ++i) { 34 34 var child = record.children[i]; 35 if (child.type == timelineAgentRecordType.EvaluateScript)35 if (child.type === timelineAgentRecordType.EvaluateScript) 36 36 if (analyzeEvaluateScript(child)) 37 37 return true; … … 51 51 for (var i = 0 ; i < numRecords; ++i) { 52 52 var record = timelineRecords[i]; 53 if (record.type == timelineAgentRecordType.ParseHTML) {53 if (record.type === timelineAgentRecordType.ParseHTML) { 54 54 // Uncomment to debug the ParseHTML data record 55 55 // dumpTimelineRecord(record, 0); -
trunk/LayoutTests/inspector/timeline-script-tag-2.html
r50828 r50830 11 11 for (var i = 0; i < numChildren; ++i) { 12 12 var child = record.children[i]; 13 if (child.type == timelineAgentRecordType.MarkTimeline14 && child.data.message == timelineMark15 && record.data.url.indexOf("timeline-script-tag- 1.html") !== -1) {13 if (child.type === timelineAgentRecordType.MarkTimeline 14 && child.data.message === timelineMark 15 && record.data.url.indexOf("timeline-script-tag-2.js") !== -1) { 16 16 17 17 // Finish printing the record as a tree … … 29 29 function analyzeParseHTML(record) 30 30 { 31 // Now, dump the specific Script tag that includes the Marker and dump it in detail.32 31 var numChildren = record.children ? record.children.length : 0; 33 32 for (var i = 0; i < numChildren; ++i) { 34 33 var child = record.children[i]; 35 if (child.type == timelineAgentRecordType.EvaluateScript)34 if (child.type === timelineAgentRecordType.EvaluateScript) 36 35 if (analyzeEvaluateScript(child)) 37 36 return true; … … 51 50 for (var i = 0 ; i < numRecords; ++i) { 52 51 var record = timelineRecords[i]; 53 if (record.type == timelineAgentRecordType.ParseHTML) {52 if (record.type === timelineAgentRecordType.ParseHTML) { 54 53 // Uncomment to debug the ParseHTML data record 55 54 // dumpTimelineRecord(record, 0); … … 71 70 <body onload="onload()"> 72 71 <p> 73 Tests the Timeline API instrumentation of a n HTML script tag.72 Tests the Timeline API instrumentation of a script tag with an external script. 74 73 </p> 75 74 76 <script> 77 // Mark this script tag so we can find it in the timeline data. 78 console.markTimeline(timelineMark); 79 </script> 75 <script src="timeline-script-tag-2.js"></script> 80 76 </body> 81 77 </html> -
trunk/LayoutTests/inspector/timeline-test.js
r50809 r50830 40 40 if (level > 0) 41 41 prefix = prefix + "> "; 42 if (record.type == timelineAgentRecordType.MarkTimeline) {42 if (record.type === timelineAgentRecordType.MarkTimeline) { 43 43 suffix = " : " + record.data.message; 44 44 } … … 128 128 { 129 129 for (var prop in timelineAgentRecordType) { 130 if (timelineAgentRecordType[prop] == numericType)130 if (timelineAgentRecordType[prop] === numericType) 131 131 return prop; 132 132 }
Note: See TracChangeset
for help on using the changeset viewer.