Title: [195579] trunk
Revision
195579
Author
[email protected]
Date
2016-01-25 21:40:28 -0800 (Mon, 25 Jan 2016)

Log Message

Give the layout test results file a <title> showing the date and time the tests were run
https://bugs.webkit.org/show_bug.cgi?id=153187

Reviewed by Darin Adler.

Tools:

Include a 'date' property in the JSON with the date and time the tests completed.

* Scripts/webkitpy/layout_tests/models/test_run_results.py:
(summarize_results):

LayoutTests:

Generate a <title> element from the 'date' property in the JSON.

* fast/harness/results.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (195578 => 195579)


--- trunk/LayoutTests/ChangeLog	2016-01-26 04:01:33 UTC (rev 195578)
+++ trunk/LayoutTests/ChangeLog	2016-01-26 05:40:28 UTC (rev 195579)
@@ -1,3 +1,14 @@
+2016-01-25  Simon Fraser  <[email protected]>
+
+        Give the layout test results file a <title> showing the date and time the tests were run
+        https://bugs.webkit.org/show_bug.cgi?id=153187
+
+        Reviewed by Darin Adler.
+        
+        Generate a <title> element from the 'date' property in the JSON.
+
+        * fast/harness/results.html:
+
 2016-01-25  Carlos Alberto Lopez Perez  <[email protected]>
 
         [GTK] Unreviewed GTK gardening.

Modified: trunk/LayoutTests/fast/harness/results.html (195578 => 195579)


--- trunk/LayoutTests/fast/harness/results.html	2016-01-26 04:01:33 UTC (rev 195578)
+++ trunk/LayoutTests/fast/harness/results.html	2016-01-26 05:40:28 UTC (rev 195579)
@@ -1385,9 +1385,18 @@
     return header + tableRowHtml + '</table></div>';
 }
 
+function updateTitle()
+{
+    var dateString = globalState().results.date;
+    
+    var title = document.createElement('title');
+    title.textContent = 'Layout Test Results from ' + dateString;
+    document.head.appendChild(title);
+}
 
 function generatePage()
 {
+    updateTitle();
     forEachTest(processGlobalStateFor);
     forOtherCrashes();
 

Modified: trunk/Tools/ChangeLog (195578 => 195579)


--- trunk/Tools/ChangeLog	2016-01-26 04:01:33 UTC (rev 195578)
+++ trunk/Tools/ChangeLog	2016-01-26 05:40:28 UTC (rev 195579)
@@ -1,3 +1,15 @@
+2016-01-25  Simon Fraser  <[email protected]>
+
+        Give the layout test results file a <title> showing the date and time the tests were run
+        https://bugs.webkit.org/show_bug.cgi?id=153187
+
+        Reviewed by Darin Adler.
+        
+        Include a 'date' property in the JSON with the date and time the tests completed.
+
+        * Scripts/webkitpy/layout_tests/models/test_run_results.py:
+        (summarize_results):
+
 2016-01-25  Commit Queue  <[email protected]>
 
         Unreviewed, rolling out r195543.

Modified: trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py (195578 => 195579)


--- trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py	2016-01-26 04:01:33 UTC (rev 195578)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py	2016-01-26 05:40:28 UTC (rev 195579)
@@ -27,6 +27,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+import datetime
 import logging
 import signal
 
@@ -133,6 +134,7 @@
         'num_missing': The number of tests with missing results
         'num_passes': The number of unexpected passes
         'tests': a dict of tests -> {'expected': '...', 'actual': '...'}
+        'date': the current date and time
     """
     results = {}
     results['version'] = 4
@@ -264,6 +266,7 @@
     results['has_pretty_patch'] = port_obj.pretty_patch.pretty_patch_available()
     results['pixel_tests_enabled'] = port_obj.get_option('pixel_tests')
     results['other_crashes'] = other_crashes_dict
+    results['date'] = datetime.datetime.now().strftime("%I:%M%p on %B %d, %Y")
 
     try:
         # We only use the svn revision for using trac links in the results.html file,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to