| 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>
|
|
|