Backed out changeset 4c9d2dab60f3 (bug 1181038) for w(4) failures CLOSED TREE
authorWes Kocher <wkocher@mozilla.com>
Thu, 17 Sep 2015 11:40:19 -0700
changeset 295687 5fb3b6b4c08c6dd2d58859e1c32f724139f41a1e
parent 295686 a4708ebe67c5fd2aecf76f5f4d67ce59ff98e921
child 295688 ab174fa288a344e4cd48969f5935b81961583c10
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1181038
milestone43.0a1
backs out4c9d2dab60f3111024ce85d61a6c3bb3c4a706b4
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
Backed out changeset 4c9d2dab60f3 (bug 1181038) for w(4) failures CLOSED TREE
testing/web-platform/mozilla/meta/service-workers/service-worker/performance-timeline.https.html.ini
testing/web-platform/mozilla/tests/service-workers/service-worker/performance-timeline.https.html
testing/web-platform/mozilla/tests/service-workers/service-worker/resources/dummy.txt
testing/web-platform/mozilla/tests/service-workers/service-worker/resources/performance-timeline-worker.js
--- a/testing/web-platform/mozilla/meta/service-workers/service-worker/performance-timeline.https.html.ini
+++ b/testing/web-platform/mozilla/meta/service-workers/service-worker/performance-timeline.https.html.ini
@@ -1,5 +1,5 @@
 [performance-timeline.https.html]
   type: testharness
-  [Resource Timing]
+  [Test Performance Timeline API in Service Worker]
     expected: FAIL
 
--- a/testing/web-platform/mozilla/tests/service-workers/service-worker/performance-timeline.https.html
+++ b/testing/web-platform/mozilla/tests/service-workers/service-worker/performance-timeline.https.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script src="resources/test-helpers.sub.js"></script>
 <script>
 
 service_worker_test(
-    'resources/performance-timeline-worker.js',
+    '../workers/resources/performance-timeline-worker.js',
     'Test Performance Timeline API in Service Worker');
 
 </script>
deleted file mode 100644
--- a/testing/web-platform/mozilla/tests/service-workers/service-worker/resources/dummy.txt
+++ /dev/null
@@ -1,1 +0,0 @@
-Hello world
deleted file mode 100644
--- a/testing/web-platform/mozilla/tests/service-workers/service-worker/resources/performance-timeline-worker.js
+++ /dev/null
@@ -1,53 +0,0 @@
-importScripts('/resources/testharness.js');
-
-promise_test(function(test) {
-    var durationMsec = 100;
-    return new Promise(function(resolve) {
-        performance.mark('startMark');
-        setTimeout(resolve, durationMsec);
-      }).then(function() {
-          performance.mark('endMark');
-          performance.measure('measure', 'startMark', 'endMark');
-          var startMark = performance.getEntriesByName('startMark')[0];
-          var endMark = performance.getEntriesByName('endMark')[0];
-          var measure = performance.getEntriesByType('measure')[0];
-          assert_equals(measure.startTime, startMark.startTime);
-          assert_approx_equals(endMark.startTime - startMark.startTime,
-                               measure.duration, 0.001);
-          assert_greater_than(measure.duration, durationMsec);
-          assert_equals(performance.getEntriesByType('mark').length, 2);
-          assert_equals(performance.getEntriesByType('measure').length, 1);
-          performance.clearMarks('startMark');
-          performance.clearMeasures('measure');
-          assert_equals(performance.getEntriesByType('mark').length, 1);
-          assert_equals(performance.getEntriesByType('measure').length, 0);
-      });
-  }, 'User Timing');
-
-promise_test(function(test) {
-    return fetch('dummy.txt')
-      .then(function(resp) {
-          return resp.text();
-        })
-      .then(function(text) {
-          var expectedResources = ['testharness.js', 'dummy.txt'];
-          assert_equals(performance.getEntriesByType('resource').length, expectedResources.length);
-          for (var i = 0; i < expectedResources.length; i++) {
-              var entry = performance.getEntriesByType('resource')[i];
-              assert_true(entry.name.endsWith(expectedResources[i]));
-              assert_equals(entry.workerStart, 0);
-              assert_greater_than(entry.startTime, 0);
-              assert_greater_than(entry.responseEnd, entry.startTime);
-          }
-          return new Promise(function(resolve) {
-              performance.onresourcetimingbufferfull = resolve;
-              performance.setResourceTimingBufferSize(expectedResources.length);
-            });
-        })
-      .then(function() {
-          performance.clearResourceTimings();
-          assert_equals(performance.getEntriesByType('resource').length, 0);
-        })
-  }, 'Resource Timing');
-
-done();