/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ "use strict"; // Test that VariablesView._doSearch() works even without an attached // VariablesViewController (bug 1196341). var Cu = Components.utils; var Cc = Components.classes; var Ci = Components.interfaces; const DOMParser = Cc["@mozilla.org/xmlextras/domparser;1"] .createInstance(Ci.nsIDOMParser); const { VariablesView } = Cu.import("resource://devtools/client/shared/widgets/VariablesView.jsm", {}); function run_test() { let doc = DOMParser.parseFromString("