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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html

Issue 2207833002: Call FetchContext::dispatchWillSendRequest() only if an actual load is started (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Rebase. Created 4 years, 4 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 | third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html
new file mode 100644
index 0000000000000000000000000000000000000000..d454b77289a92b648a5a2a9e9153a6417a6a3724
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html
@@ -0,0 +1,31 @@
+<html>
+<head>
+<script src="/inspector/inspector-test.js"></script>
+<script>
+function createIFrame() {
+ var iframe = document.createElement("iframe");
+ iframe.src = "resources/font-face.html";
+ document.body.appendChild(iframe);
+}
+
+function test() {
+ function onRequest(event)
+ {
+ var request = event.data;
+ if (request.name() === 'done') {
+ InspectorTest.completeTest();
+ return;
+ }
+ InspectorTest.addResult(event.type + ": " + request.name());
+ }
+ InspectorTest.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestStarted, onRequest);
+ InspectorTest.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestFinished, onRequest);
+
+ InspectorTest.evaluateInPage("createIFrame()");
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that a used font-face is reported and an unused font-face is not reported.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698