Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/tests/policy.js

Issue 29329486: Issue 3208 - Adjust unit tests for the content policy changes (Closed)
Patch Set: Created Oct. 29, 2015, 1:59 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/content/tests/test_requestList.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/policy.js
===================================================================
--- a/chrome/content/tests/policy.js
+++ b/chrome/content/tests/policy.js
@@ -382,17 +382,17 @@
let [wnd, node, item] = policyHits[0];
equal(item.location, expectedURL, "Request URL");
expectedStatus = (stage == 1 ? "allowed" : "blocked");
let actualStatus = (item.filter ? "blocked" : "allowed");
equal(actualStatus, expectedStatus, "Request blocked");
- equal(item.typeDescr.toLowerCase(), expectedType, "Request type");
+ equal(item.type.toLowerCase(), expectedType, "Request type");
equal(item.thirdParty, expectedThirdParty, "Third-party flag");
equal(item.docDomain, "127.0.0.1", "Document domain");
}
}
server.registerPathHandler(expectedURL.replace(/http:\/\/[^\/]+/, ""), null);
equal(serverHit, expectedStatus == "allowed", "Request received by server");
frame.removeEventListener("abp:frameready", callback, false);
« no previous file with comments | « no previous file | chrome/content/tests/test_requestList.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld