diff --git a/dom/tests/mochitest/general/mochitest.ini b/dom/tests/mochitest/general/mochitest.ini index dde7a7b348fc..ce316172e524 100644 --- a/dom/tests/mochitest/general/mochitest.ini +++ b/dom/tests/mochitest/general/mochitest.ini @@ -32,6 +32,7 @@ support-files = res7.resource^headers^ res8.resource res8.resource^headers^ + resource_timing.js [test_497898.html] skip-if = (buildapp == 'b2g' && toolkit != 'gonk') || toolkit == 'android' #Bug 931116, b2g desktop specific, initial triage diff --git a/dom/tests/mochitest/general/resource_timing.js b/dom/tests/mochitest/general/resource_timing.js new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/dom/tests/mochitest/general/resource_timing_cross_origin.html b/dom/tests/mochitest/general/resource_timing_cross_origin.html index e4a8bdde10cd..c5b906280744 100644 --- a/dom/tests/mochitest/general/resource_timing_cross_origin.html +++ b/dom/tests/mochitest/general/resource_timing_cross_origin.html @@ -86,6 +86,10 @@ function firstCheck() { ok(!!entries[0], "redirected res8.resource is missing from entries"); checkRedirectCrossOriginResourceSameOrigin(entries[0]); + entries = window.performance.getEntriesByName("http://mochi.test:8888/tests/dom/tests/mochitest/general/resource_timing.js"); + ok(!!entries[0], "same origin resource_timing.js is missing from entries"); + checkSameOrigin(entries[0]); + is(bufferFullCounter, expectedBufferFullEvents, "Buffer full was called"); finishTests(); } @@ -176,6 +180,7 @@ function finishTests() { +