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

Unified Diff: chrome/content/tests/test_requestList.html

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 | « chrome/content/tests/policy.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/test_requestList.html
===================================================================
--- a/chrome/content/tests/test_requestList.html
+++ b/chrome/content/tests/test_requestList.html
@@ -165,25 +165,23 @@
is(frameData.length, 1, "Number of entries in the frame data");
if (frameData.length > 0)
{
is(frameData[0].node, $("frame").contentDocument.getElementById("image"), "Only entry in the frame data should be the image");
is(frameData[0].entry.toSource(), imageNodeData.toSource(), "Data received for the image should be identical to the result of getDataForNode");
}
- is(frameNodeData.type, Policy.type.SUBDOCUMENT, "Frame node data: type property");
- is(frameNodeData.typeDescr, "SUBDOCUMENT", "Frame node data: typeDescr property");
+ is(frameNodeData.type, "SUBDOCUMENT", "Frame node data: type property");
is(frameNodeData.docDomain, "mochikit", "Frame node data: docDomain property");
is(frameNodeData.thirdParty, true, "Frame node data: thirdParty property");
is(frameNodeData.location, "http://127.0.0.1:1234/test1", "Frame node data: location property");
is(frameNodeData.filter, null, "Frame node data: filter property");
- is(imageNodeData.type, Policy.type.IMAGE, "Image node data: type property");
- is(imageNodeData.typeDescr, "IMAGE", "Image node data: typeDescr property");
+ is(imageNodeData.type, "IMAGE", "Image node data: type property");
is(imageNodeData.docDomain, "127.0.0.1", "Image node data: docDomain property");
is(imageNodeData.thirdParty, false, "Image node data: thirdParty property");
is(imageNodeData.location, "http://127.0.0.1:1234/test.png", "Image node data: location property");
is(imageNodeData.filter, null, "Image node data: filter property");
top.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).garbageCollect();
ok(RequestNotifier.getDataForNode($("frame"), true), "Frame node still has data associated with it after garbage collection");
ok(RequestNotifier.getDataForNode($("frame").contentDocument.getElementById("image"), true), "Image node still has data associated with it after garbage collection");
@@ -216,25 +214,23 @@
is(frameData.length, 1, "Number of entries in the frame data");
if (frameData.length > 0)
{
is(frameData[0].node, $("frame").contentDocument.getElementById("script"), "Only entry in the frame data should be the script");
is(frameData[0].entry.toSource(), scriptNodeData.toSource(), "Data received for the script should be identical to the result of getDataForNode");
}
- is(frameNodeData.type, Policy.type.SUBDOCUMENT, "Frame node data: type property");
- is(frameNodeData.typeDescr, "SUBDOCUMENT", "Frame node data: typeDescr property");
+ is(frameNodeData.type, "SUBDOCUMENT", "Frame node data: type property");
is(frameNodeData.docDomain, "mochikit", "Frame node data: docDomain property");
is(frameNodeData.thirdParty, true, "Frame node data: thirdParty property");
is(frameNodeData.location, "http://127.0.0.1:1234/test2", "Frame node data: location property");
is(frameNodeData.filter, null, "Frame node data: filter property");
- is(scriptNodeData.type, Policy.type.SCRIPT, "Script node data: type property");
- is(scriptNodeData.typeDescr, "SCRIPT", "Script node data: typeDescr property");
+ is(scriptNodeData.type, "SCRIPT", "Script node data: type property");
is(scriptNodeData.docDomain, "127.0.0.1", "Script node data: docDomain property");
is(scriptNodeData.thirdParty, false, "Script node data: thirdParty property");
is(scriptNodeData.location, "http://127.0.0.1:1234/test.js", "Script node data: location property");
is(scriptNodeData.filter, null, "Script node data: filter property");
top.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).garbageCollect();
ok(RequestNotifier.getDataForNode($("frame"), true), "Frame node still has data associated with it after garbage collection");
ok(RequestNotifier.getDataForNode($("frame").contentDocument.getElementById("script"), true), "Script node still has data associated with it after garbage collection");
« no previous file with comments | « chrome/content/tests/policy.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld