2009-11-10 Eric Z. Ayers <zundel@google.com>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2009 21:20:46 +0000 (21:20 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2009 21:20:46 +0000 (21:20 +0000)
        Reviewed by Timothy Hatcher.

        Adds a test to flag changes to values of the WebInspector Timeline record types.
        Downstream apps depend on these mappings remaining stable.

        https://bugs.webkit.org/show_bug.cgi?id=31303

        * inspector/timeline-enum-stability-expected.txt: Added.
        * inspector/timeline-enum-stability.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@50758 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/inspector/timeline-enum-stability-expected.txt [new file with mode: 0644]
LayoutTests/inspector/timeline-enum-stability.html [new file with mode: 0644]

index 2c5dd544867c39390ef1672e0f20ae291c7e32b6..e202d8d34e10ac761c20ed2c08939f95c0f225f1 100644 (file)
@@ -1,3 +1,15 @@
+2009-11-10  Eric Z. Ayers  <zundel@google.com>
+
+        Reviewed by Timothy Hatcher.
+
+        Adds a test to flag changes to values of the WebInspector Timeline record types.
+        Downstream apps depend on these mappings remaining stable.
+
+        https://bugs.webkit.org/show_bug.cgi?id=31303
+
+        * inspector/timeline-enum-stability-expected.txt: Added.
+        * inspector/timeline-enum-stability.html: Added.
+
 2009-11-10  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
 
         Reviewed by Kenneth Rohde Christiansen.
diff --git a/LayoutTests/inspector/timeline-enum-stability-expected.txt b/LayoutTests/inspector/timeline-enum-stability-expected.txt
new file mode 100644 (file)
index 0000000..6ec8883
--- /dev/null
@@ -0,0 +1,20 @@
+Check to see that TimelineAgent record types are stable.
+
+Applications outside of WebKit depend on the stability of the mapping of these types to these specific values.
+
+WebInspector.TimelineAgent.RecordType.EventDispatch : 0
+WebInspector.TimelineAgent.RecordType.Layout : 1
+WebInspector.TimelineAgent.RecordType.RecalculateStyles : 2
+WebInspector.TimelineAgent.RecordType.Paint : 3
+WebInspector.TimelineAgent.RecordType.ParseHTML : 4
+WebInspector.TimelineAgent.RecordType.TimerInstall : 5
+WebInspector.TimelineAgent.RecordType.TimerRemove : 6
+WebInspector.TimelineAgent.RecordType.TimerFire : 7
+WebInspector.TimelineAgent.RecordType.XHRReadyStateChange : 8
+WebInspector.TimelineAgent.RecordType.XHRLoad : 9
+WebInspector.TimelineAgent.RecordType.EvaluateScript : 10
+WebInspector.TimelineAgent.RecordType.MarkTimeline : 11
+WebInspector.TimelineAgent.RecordType.ResourceSendRequest : 12
+WebInspector.TimelineAgent.RecordType.ResourceReceiveResponse : 13
+WebInspector.TimelineAgent.RecordType.ResourceFinish : 14
+
diff --git a/LayoutTests/inspector/timeline-enum-stability.html b/LayoutTests/inspector/timeline-enum-stability.html
new file mode 100644 (file)
index 0000000..5553b16
--- /dev/null
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script src="inspector-test.js"></script>
+<script>
+
+function dumpTimelineAgentRecordType(types) {
+   var prefix = "WebInspector.TimelineAgent.RecordType.";
+   for (prop in types) {
+       output(prefix + prop + " : " + types[prop]);
+   }
+   notifyDone();
+}
+
+function doit()
+{
+   evaluateInWebInspector("WebInspector.TimelineAgent.RecordType", dumpTimelineAgentRecordType);
+}
+
+</script>
+</head>
+
+<body onload="onload()">
+<p> 
+Check to see that TimelineAgent record types are stable.
+</p>
+
+<p>
+Applications outside of WebKit depend on the stability of the mapping of 
+these types to these specific values.
+</p>
+
+</body>
+</html>