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

Unified Diff: Source/core/testing/Internals.cpp

Issue 900903002: DevTools: do not use Internals for inspector highlight tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comment addressed. Created 5 years, 10 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 99f73b7ec481854ce1b5cda4b6da8996cb069341..d64189972b4deab7a7b7ecc94608c0753b419b80 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1469,17 +1469,6 @@ Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
return result;
}
-String Internals::inspectorHighlightJSON(Node* node, ExceptionState& exceptionState)
-{
- Page* page = contextDocument()->frame()->page();
- if (!page) {
- exceptionState.throwDOMException(InvalidAccessError, "No page can be obtained from the current context document.");
- return String();
- }
- RefPtr<JSONObject> json(page->inspectorController().highlightJSONForNode(node));
- return json->toPrettyJSONString();
-}
-
bool Internals::hasGrammarMarker(Document* document, int from, int length)
{
ASSERT(document);
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698