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

Unified Diff: content/shell/renderer/test_runner/test_runner.h

Issue 1056913002: Add testRunner.insertStyleSheet for testing style sheet injection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/test_runner.h
diff --git a/content/shell/renderer/test_runner/test_runner.h b/content/shell/renderer/test_runner/test_runner.h
index ef26e200a74b67e7908fc876d1aa857657dd875e..57047c679cf1f6488d363364db4798a92130e88d 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -244,8 +244,13 @@ class TestRunner : public WebTestRunner,
void ForceRedSelectionColors();
// Adds a style sheet to be injected into new documents.
+ // TODO(dcheng): This will be removed in a followup patch.
void InjectStyleSheet(const std::string& source_code, bool all_frames);
+ // Add |source_code| as an injected stylesheet to the active document of the
+ // window of the current V8 context.
+ void InsertStyleSheet(const std::string& source_code);
+
bool FindString(const std::string& search_text,
const std::vector<std::string>& options_array);
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698