| Index: components/test_runner/test_runner.cc
|
| diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
|
| index cf41203f1ffe0ada8dd76989f7c8387154cd1e84..3790ade8591a06682bc11ad56b0a29918e721084 100644
|
| --- a/components/test_runner/test_runner.cc
|
| +++ b/components/test_runner/test_runner.cc
|
| @@ -254,6 +254,7 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
|
| void ShowWebInspector(gin::Arguments* args);
|
| void SimulateWebNotificationClick(const std::string& title, int action_index);
|
| void SimulateWebNotificationClose(const std::string& title, bool by_user);
|
| + void StripLineNumbersFromConsoleMessages();
|
| void UseUnfortunateSynchronousResizeMode();
|
| void WaitForPolicyDelegate();
|
| void WaitUntilDone();
|
| @@ -571,6 +572,8 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
|
| .SetMethod("setWindowIsKey", &TestRunnerBindings::SetWindowIsKey)
|
| .SetMethod("setXSSAuditorEnabled",
|
| &TestRunnerBindings::SetXSSAuditorEnabled)
|
| + .SetMethod("stripLineNumbersFromConsoleMessages",
|
| + &TestRunnerBindings::StripLineNumbersFromConsoleMessages)
|
| .SetMethod("showWebInspector", &TestRunnerBindings::ShowWebInspector)
|
| .SetMethod("simulateWebNotificationClick",
|
| &TestRunnerBindings::SimulateWebNotificationClick)
|
| @@ -1199,6 +1202,11 @@ void TestRunnerBindings::SetUseMockTheme(bool use) {
|
| runner_->SetUseMockTheme(use);
|
| }
|
|
|
| +void TestRunnerBindings::StripLineNumbersFromConsoleMessages() {
|
| + if (runner_)
|
| + runner_->StripLineNumbersFromConsoleMessages();
|
| +}
|
| +
|
| void TestRunnerBindings::WaitUntilExternalURLLoad() {
|
| if (runner_)
|
| runner_->WaitUntilExternalURLLoad();
|
| @@ -1828,6 +1836,10 @@ bool TestRunner::shouldWaitUntilExternalURLLoad() const {
|
| return layout_test_runtime_flags_.wait_until_external_url_load();
|
| }
|
|
|
| +bool TestRunner::shouldDumpConsoleLineNumbers() const {
|
| + return layout_test_runtime_flags_.include_line_numbers_in_console_messages();
|
| +}
|
| +
|
| const std::set<std::string>* TestRunner::httpHeadersToClear() const {
|
| return &http_headers_to_clear_;
|
| }
|
| @@ -2562,6 +2574,12 @@ void TestRunner::WaitUntilExternalURLLoad() {
|
| OnLayoutTestRuntimeFlagsChanged();
|
| }
|
|
|
| +void TestRunner::StripLineNumbersFromConsoleMessages() {
|
| + layout_test_runtime_flags_.set_include_line_numbers_in_console_messages(
|
| + false);
|
| + OnLayoutTestRuntimeFlagsChanged();
|
| +}
|
| +
|
| void TestRunner::DumpDragImage() {
|
| layout_test_runtime_flags_.set_dump_drag_image(true);
|
| DumpAsTextWithPixelResults();
|
|
|