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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/subresource-integrity-number-of-requests.html

Issue 1569623002: Fix-up some code relating to SRI double-requesting scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: More fixes Created 4 years, 11 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
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/subresource-integrity-number-of-requests.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/subresource-integrity-number-of-requests.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/subresource-integrity-number-of-requests.html
deleted file mode 100644
index 4e2ecbfa972070f27f21aec7c95f76a613cd44ff..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/subresource-integrity-number-of-requests.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../inspector-test.js"></script>
-<script src="../network-test.js"></script>
-<script>
-// Regression test for https://crbug.com/573269.
-function loadIFrame() {
- var iframe = document.createElement('iframe');
- iframe.src = 'resources/call-success-with-integrity-frame.html';
- document.body.appendChild(iframe);
-}
-
-function test() {
- function findRequestsByURL(url)
- {
- var requests = InspectorTest.networkRequests();
- var results = [];
- for (var i = 0; i < requests.length; ++i) {
- if (url.test(requests[i].url))
- results.push(requests[i]);
- }
-
- return results;
- }
- InspectorTest.addConsoleSniffer(step1);
- InspectorTest.evaluateInPage("loadIFrame()");
-
- function step1() {
- var requests = findRequestsByURL(/call-success.js/);
- InspectorTest.assertTrue(requests.length === 1);
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body>
-<script>runTest();</script>
-<p>Verify that only one request is made for basic script requests with integrity attribute.</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698