[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

eric at webkit.org eric at webkit.org
Wed Apr 7 23:32:04 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit b5527562248a75fa20af788a4867d984f3ba0066
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Nov 11 21:35:43 2009 +0000

    2009-11-11  Eric Z. Ayers  <zundel at google.com>
    
            Reviewed by Pavel Feldman.
    
            Timeline tests for records generated for
            Layout, Paint, ParseHTML, MarkTimeline, and Style Recalculation
    
            https://bugs.webkit.org/show_bug.cgi?id=31361
    
            * inspector/timeline-layout-expected.txt: Added.
            * inspector/timeline-layout.html: Added.
            * inspector/timeline-mark-timeline-expected.txt: Added.
            * inspector/timeline-mark-timeline.html: Added.
            * inspector/timeline-paint-expected.txt: Added.
            * inspector/timeline-paint.html: Added.
            * inspector/timeline-parse-html-expected.txt: Added.
            * inspector/timeline-parse-html.html: Added.
            * inspector/timeline-recalculate-styles-expected.txt: Added.
            * inspector/timeline-recalculate-styles.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50839 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index a358440..131affa 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,23 @@
+2009-11-11  Eric Z. Ayers  <zundel at google.com>
+
+        Reviewed by Pavel Feldman.
+
+        Timeline tests for records generated for
+        Layout, Paint, ParseHTML, MarkTimeline, and Style Recalculation
+
+        https://bugs.webkit.org/show_bug.cgi?id=31361
+
+        * inspector/timeline-layout-expected.txt: Added.
+        * inspector/timeline-layout.html: Added.
+        * inspector/timeline-mark-timeline-expected.txt: Added.
+        * inspector/timeline-mark-timeline.html: Added.
+        * inspector/timeline-paint-expected.txt: Added.
+        * inspector/timeline-paint.html: Added.
+        * inspector/timeline-parse-html-expected.txt: Added.
+        * inspector/timeline-parse-html.html: Added.
+        * inspector/timeline-recalculate-styles-expected.txt: Added.
+        * inspector/timeline-recalculate-styles.html: Added.
+
 2009-11-11  Jessie Berlin  <jberlin at webkit.org>
 
         Reviewed by Timothy Hatcher.
diff --git a/LayoutTests/inspector/timeline-layout-expected.txt b/LayoutTests/inspector/timeline-layout-expected.txt
new file mode 100644
index 0000000..ad65133
--- /dev/null
+++ b/LayoutTests/inspector/timeline-layout-expected.txt
@@ -0,0 +1,8 @@
+Tests the Timeline API instrumentation of a Layout event
+
+Layout Properties:
++ startTime : * DEFINED *
++ children : * DEFINED *
++ endTime : * DEFINED *
++ type : 1
+
diff --git a/LayoutTests/inspector/timeline-layout.html b/LayoutTests/inspector/timeline-layout.html
new file mode 100644
index 0000000..9458bdf
--- /dev/null
+++ b/LayoutTests/inspector/timeline-layout.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="inspector-test.js"></script>
+<script src="timeline-test.js"></script>
+<script>
+
+function analyzeTimelineData(timelineRecords) 
+{
+    // Uncomment to debugging the list of data returned.
+    // dumpTimelineRecords(timelineRecords);
+
+    // Search for the first Layout record you can find
+    var numRecords = timelineRecords.length;
+    for (var i = 0 ; i < numRecords; ++i) {
+        var record = timelineRecords[i];
+        if (record.type === timelineAgentRecordType.Layout) {
+            printTimelineRecordProperties(record);
+            break;
+        }
+    }
+}
+
+function doit() 
+{
+    retrieveTimelineData(analyzeTimelineData);
+}
+
+</script>
+</head>
+
+<body onload="onload()">
+<p>
+Tests the Timeline API instrumentation of a Layout event
+</p>
+
+</body>
+</html>
diff --git a/LayoutTests/inspector/timeline-mark-timeline-expected.txt b/LayoutTests/inspector/timeline-mark-timeline-expected.txt
new file mode 100644
index 0000000..311a43d
--- /dev/null
+++ b/LayoutTests/inspector/timeline-mark-timeline-expected.txt
@@ -0,0 +1,9 @@
+Tests the Timeline API mark feature
+
+MarkTimeline Properties:
++ startTime : * DEFINED *
++ data : {
++- message : MARK TIMELINE
++ }
++ type : 11
+
diff --git a/LayoutTests/inspector/timeline-mark-timeline.html b/LayoutTests/inspector/timeline-mark-timeline.html
new file mode 100644
index 0000000..53b098b
--- /dev/null
+++ b/LayoutTests/inspector/timeline-mark-timeline.html
@@ -0,0 +1,58 @@
+<html>
+<head>
+<script src="inspector-test.js"></script>
+<script src="timeline-test.js"></script>
+<script>
+
+var timelineMark = "MARK TIMELINE";
+
+function findMarkTimeline(record) 
+{
+    if (record.type === timelineAgentRecordType.MarkTimeline && record.data.message === timelineMark) {
+        printTimelineRecordProperties(record);
+        return true;
+    }
+
+    var numChildren = record.children ? record.children.length : 0;
+    for (var i = 0; i < numChildren; ++i) {
+        if (findMarkTimeline(record.children[i]))
+            return true;
+    }
+    return false;
+}
+
+function analyzeTimelineData(timelineRecords) 
+{
+    // Uncomment to debugging the list of data returned.
+    // dumpTimelineRecords(timelineRecords);
+
+    var found = false;
+    var numRecords = timelineRecords.length;
+    for (var i = 0 ; i < numRecords; ++i) {
+        var record = timelineRecords[i];
+        if (found = findMarkTimeline(record))
+            break;
+    }
+    if (!found)
+        output("Couldn't find timeline mark: " + timelineMark);
+}
+
+function doit() 
+{
+    retrieveTimelineData(analyzeTimelineData);
+}
+
+</script>
+</head>
+
+<body onload="onload()">
+<p>
+Tests the Timeline API mark feature
+</p>
+
+<script>
+    console.markTimeline(timelineMark);
+</script>
+
+</body>
+</html>
diff --git a/LayoutTests/inspector/timeline-paint-expected.txt b/LayoutTests/inspector/timeline-paint-expected.txt
new file mode 100644
index 0000000..113c7f2
--- /dev/null
+++ b/LayoutTests/inspector/timeline-paint-expected.txt
@@ -0,0 +1,14 @@
+Tests the Timeline API instrumentation of a paint event
+
+Paint Properties:
++ startTime : * DEFINED *
++ data : {
++- x : 0
++- y : 0
++- width : 800
++- height : 350
++ }
++ children : * DEFINED *
++ endTime : * DEFINED *
++ type : 3
+
diff --git a/LayoutTests/inspector/timeline-paint.html b/LayoutTests/inspector/timeline-paint.html
new file mode 100644
index 0000000..ac84941
--- /dev/null
+++ b/LayoutTests/inspector/timeline-paint.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="inspector-test.js"></script>
+<script src="timeline-test.js"></script>
+<script>
+
+function analyzeTimelineData(timelineRecords) 
+{
+    // Uncomment to debugging the list of data returned.
+    // dumpTimelineRecords(timelineRecords);
+
+    // Search for the first Paint record you can find
+    var numRecords = timelineRecords.length;
+    for (var i = 0 ; i < numRecords; ++i) {
+        var record = timelineRecords[i];
+        if (record.type === timelineAgentRecordType.Paint) {
+            printTimelineRecordProperties(record);
+            break;
+        }
+    }
+}
+
+function doit() 
+{
+    retrieveTimelineData(analyzeTimelineData);
+}
+
+</script>
+</head>
+
+<body onload="onload()">
+<p>
+Tests the Timeline API instrumentation of a paint event
+</p>
+
+</body>
+</html>
diff --git a/LayoutTests/inspector/timeline-parse-html-expected.txt b/LayoutTests/inspector/timeline-parse-html-expected.txt
new file mode 100644
index 0000000..98c337b
--- /dev/null
+++ b/LayoutTests/inspector/timeline-parse-html-expected.txt
@@ -0,0 +1,8 @@
+Tests the Timeline API instrumentation of ParseHTML
+
+ParseHTML Properties:
++ startTime : * DEFINED *
++ children : * DEFINED *
++ endTime : * DEFINED *
++ type : 4
+
diff --git a/LayoutTests/inspector/timeline-parse-html.html b/LayoutTests/inspector/timeline-parse-html.html
new file mode 100644
index 0000000..715eb6c
--- /dev/null
+++ b/LayoutTests/inspector/timeline-parse-html.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="inspector-test.js"></script>
+<script src="timeline-test.js"></script>
+<script>
+
+function analyzeTimelineData(timelineRecords) 
+{
+    // Uncomment to debugging the list of data returned.
+    // dumpTimelineRecords(timelineRecords);
+
+    // Search for the first ParseHTML record you can find
+    var numRecords = timelineRecords.length;
+    for (var i = 0 ; i < numRecords; ++i) {
+        var record = timelineRecords[i];
+        if (record.type === timelineAgentRecordType.ParseHTML) {
+            printTimelineRecordProperties(record);
+            break;
+        }
+    }
+}
+
+function doit() 
+{
+    retrieveTimelineData(analyzeTimelineData);
+}
+
+</script>
+</head>
+
+<body onload="onload()">
+<p>
+Tests the Timeline API instrumentation of ParseHTML 
+</p>
+
+</body>
+</html>
diff --git a/LayoutTests/inspector/timeline-recalculate-styles-expected.txt b/LayoutTests/inspector/timeline-recalculate-styles-expected.txt
new file mode 100644
index 0000000..b38dced
--- /dev/null
+++ b/LayoutTests/inspector/timeline-recalculate-styles-expected.txt
@@ -0,0 +1,8 @@
+Tests the Timeline API instrumentation of a style recalculation event
+
+RecalculateStyles Properties:
++ startTime : * DEFINED *
++ children : * DEFINED *
++ endTime : * DEFINED *
++ type : 2
+
diff --git a/LayoutTests/inspector/timeline-recalculate-styles.html b/LayoutTests/inspector/timeline-recalculate-styles.html
new file mode 100644
index 0000000..12fa1ef
--- /dev/null
+++ b/LayoutTests/inspector/timeline-recalculate-styles.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="inspector-test.js"></script>
+<script src="timeline-test.js"></script>
+<script>
+
+function analyzeTimelineData(timelineRecords) 
+{
+    // Uncomment to debugging the list of data returned.
+    // dumpTimelineRecords(timelineRecords);
+
+    // Search for the first RecalculateStyles record you can find
+    var numRecords = timelineRecords.length;
+    for (var i = 0 ; i < numRecords; ++i) {
+        var record = timelineRecords[i];
+        if (record.type === timelineAgentRecordType.RecalculateStyles) {
+            printTimelineRecordProperties(record);
+            break;
+        }
+    }
+}
+
+function doit() 
+{
+    retrieveTimelineData(analyzeTimelineData);
+}
+
+</script>
+</head>
+
+<body onload="onload()">
+<p>
+Tests the Timeline API instrumentation of a style recalculation event
+</p>
+
+</body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list