Bug 1263428 - Add temporary code to debug intermittent WPT failure a=testonly
authorValentin Gosu <valentin.gosu@gmail.com>
Sun, 17 Apr 2016 18:36:57 +0200
changeset 331418 cd04bd37115c1eaba4fc53cf3cd62dd3167565f3
parent 331417 37ae3a4b4185ff3b9cb0066cddf5500fdd976081
child 331419 f50694e2aa7c3685a53943e5732156789b31ef67
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1263428
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1263428 - Add temporary code to debug intermittent WPT failure a=testonly MozReview-Commit-ID: CwTV13yyt9z
testing/web-platform/tests/resource-timing/test_resource_timing.js
--- a/testing/web-platform/tests/resource-timing/test_resource_timing.js
+++ b/testing/web-platform/tests/resource-timing/test_resource_timing.js
@@ -156,16 +156,23 @@ function resource_load(expected)
         assert_equals(actual.entryType, "resource");
         assert_greater_than_equal(actual.startTime, expected.startTime, "startTime is after the script to initiate the load ran");
         assert_equals(actual.duration, (actual.responseEnd - actual.startTime));
         this.done();
     });
 
     t["timing_attrs"].step(function test() {
         var actual = window.performance.getEntriesByName(expected.name)[0];
+
+        // Debugging bug 1263428
+        // Feel free to remove/overwrite this piece of code
+        if (actual.connectStart < actual.domainLookupEnd) {
+            assert_true(false, "actual: "+JSON.stringify(actual));
+        }
+
         assert_equals(actual.redirectStart, 0, "redirectStart time");
         assert_equals(actual.redirectEnd, 0, "redirectEnd time");
         assert_true(actual.secureConnectionStart == undefined ||
                     actual.secureConnectionStart == 0, "secureConnectionStart time");
         assert_equals(actual.fetchStart, actual.startTime, "fetchStart is equal to startTime");
         assert_greater_than_equal(actual.domainLookupStart, actual.fetchStart, "domainLookupStart after fetchStart");
         assert_greater_than_equal(actual.domainLookupEnd, actual.domainLookupStart, "domainLookupEnd after domainLookupStart");
         assert_greater_than_equal(actual.connectStart, actual.domainLookupEnd, "connectStart after domainLookupEnd");