/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ "use strict"; // Test native anonymous content in the markupview with // devtools.inspector.showAllAnonymousContent set to true const TEST_URL = URL_ROOT + "doc_markup_anonymous.html"; const PREF = "devtools.inspector.showAllAnonymousContent"; add_task(function* () { Services.prefs.setBoolPref(PREF, true); let {inspector} = yield openInspectorForURL(TEST_URL); let native = yield getNodeFront("#native", inspector); // Markup looks like:
let nativeChildren = yield inspector.walker.children(native); is(nativeChildren.nodes.length, 1, "Children returned from walker"); info("Checking the video element"); let video = nativeChildren.nodes[0]; ok(!video.isAnonymous, "