Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: LayoutTests/http/tests/workers/resources/performance-timeline-worker.js

Issue 1211443002: Expose Resource Timing methods and attribute in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/timing/WorkerPerformance.idl » ('j') | Source/core/timing/WorkerPerformance.idl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
diff --git a/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js b/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
index b843fd29601a3770c7a7c47a41a74be6b8d947e6..f47c3b357af2d45b03a8664253aa6392e2e55dde 100644
--- a/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
+++ b/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
@@ -43,7 +43,15 @@ promise_test(function(test) {
assert_greater_than(entry.startTime, 0);
assert_greater_than(entry.responseEnd, entry.startTime);
}
- });
+ return new Promise(function(resolve) {
+ performance.onwebkitresourcetimingbufferfull = resolve;
+ performance.webkitSetResourceTimingBufferSize(expectedResources.length);
kinuko 2015/06/24 07:11:26 omg... ok so they're also prefixed on window.
+ });
+ })
+ .then(function() {
+ performance.webkitClearResourceTimings();
+ assert_equals(performance.getEntriesByType('resource').length, 0);
+ })
}, 'Resource Timing');
done();
« no previous file with comments | « no previous file | Source/core/timing/WorkerPerformance.idl » ('j') | Source/core/timing/WorkerPerformance.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698