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

Side by Side Diff: components/test_runner/test_runner.cc

Issue 2439083003: Replace flaky test, wrangle with harness/infra
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « components/test_runner/test_runner.h ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/test_runner/test_runner.h" 5 #include "components/test_runner/test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void DidLosePointerLock(); 130 void DidLosePointerLock();
131 void DidNotAcquirePointerLock(); 131 void DidNotAcquirePointerLock();
132 void DisableMockScreenOrientation(); 132 void DisableMockScreenOrientation();
133 void DispatchBeforeInstallPromptEvent( 133 void DispatchBeforeInstallPromptEvent(
134 int request_id, 134 int request_id,
135 const std::vector<std::string>& event_platforms, 135 const std::vector<std::string>& event_platforms,
136 v8::Local<v8::Function> callback); 136 v8::Local<v8::Function> callback);
137 void DumpAsMarkup(); 137 void DumpAsMarkup();
138 void DumpAsText(); 138 void DumpAsText();
139 void DumpAsTextWithPixelResults(); 139 void DumpAsTextWithPixelResults();
140 void DumpPixelResults();
140 void DumpBackForwardList(); 141 void DumpBackForwardList();
141 void DumpChildFrameScrollPositions(); 142 void DumpChildFrameScrollPositions();
142 void DumpChildFramesAsMarkup(); 143 void DumpChildFramesAsMarkup();
143 void DumpChildFramesAsText(); 144 void DumpChildFramesAsText();
144 void DumpCreateView(); 145 void DumpCreateView();
145 void DumpDragImage(); 146 void DumpDragImage();
146 void DumpEditingCallbacks(); 147 void DumpEditingCallbacks();
147 void DumpFrameLoadCallbacks(); 148 void DumpFrameLoadCallbacks();
148 void DumpIconChanges(); 149 void DumpIconChanges();
149 void DumpNavigationPolicy(); 150 void DumpNavigationPolicy();
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 .SetMethod("disableMockScreenOrientation", 375 .SetMethod("disableMockScreenOrientation",
375 &TestRunnerBindings::DisableMockScreenOrientation) 376 &TestRunnerBindings::DisableMockScreenOrientation)
376 .SetMethod("setDisallowedSubresourcePathSuffixes", 377 .SetMethod("setDisallowedSubresourcePathSuffixes",
377 &TestRunnerBindings::SetDisallowedSubresourcePathSuffixes) 378 &TestRunnerBindings::SetDisallowedSubresourcePathSuffixes)
378 .SetMethod("dispatchBeforeInstallPromptEvent", 379 .SetMethod("dispatchBeforeInstallPromptEvent",
379 &TestRunnerBindings::DispatchBeforeInstallPromptEvent) 380 &TestRunnerBindings::DispatchBeforeInstallPromptEvent)
380 .SetMethod("dumpAsMarkup", &TestRunnerBindings::DumpAsMarkup) 381 .SetMethod("dumpAsMarkup", &TestRunnerBindings::DumpAsMarkup)
381 .SetMethod("dumpAsText", &TestRunnerBindings::DumpAsText) 382 .SetMethod("dumpAsText", &TestRunnerBindings::DumpAsText)
382 .SetMethod("dumpAsTextWithPixelResults", 383 .SetMethod("dumpAsTextWithPixelResults",
383 &TestRunnerBindings::DumpAsTextWithPixelResults) 384 &TestRunnerBindings::DumpAsTextWithPixelResults)
385 .SetMethod("dumpPixelResults", &TestRunnerBindings::DumpPixelResults)
384 .SetMethod("dumpBackForwardList", 386 .SetMethod("dumpBackForwardList",
385 &TestRunnerBindings::DumpBackForwardList) 387 &TestRunnerBindings::DumpBackForwardList)
386 .SetMethod("dumpChildFrameScrollPositions", 388 .SetMethod("dumpChildFrameScrollPositions",
387 &TestRunnerBindings::DumpChildFrameScrollPositions) 389 &TestRunnerBindings::DumpChildFrameScrollPositions)
388 .SetMethod("dumpChildFramesAsMarkup", 390 .SetMethod("dumpChildFramesAsMarkup",
389 &TestRunnerBindings::DumpChildFramesAsMarkup) 391 &TestRunnerBindings::DumpChildFramesAsMarkup)
390 .SetMethod("dumpChildFramesAsText", 392 .SetMethod("dumpChildFramesAsText",
391 &TestRunnerBindings::DumpChildFramesAsText) 393 &TestRunnerBindings::DumpChildFramesAsText)
392 .SetMethod("dumpCreateView", &TestRunnerBindings::DumpCreateView) 394 .SetMethod("dumpCreateView", &TestRunnerBindings::DumpCreateView)
393 .SetMethod("dumpDatabaseCallbacks", &TestRunnerBindings::NotImplemented) 395 .SetMethod("dumpDatabaseCallbacks", &TestRunnerBindings::NotImplemented)
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 void TestRunnerBindings::DumpAsText() { 1074 void TestRunnerBindings::DumpAsText() {
1073 if (runner_) 1075 if (runner_)
1074 runner_->DumpAsText(); 1076 runner_->DumpAsText();
1075 } 1077 }
1076 1078
1077 void TestRunnerBindings::DumpAsTextWithPixelResults() { 1079 void TestRunnerBindings::DumpAsTextWithPixelResults() {
1078 if (runner_) 1080 if (runner_)
1079 runner_->DumpAsTextWithPixelResults(); 1081 runner_->DumpAsTextWithPixelResults();
1080 } 1082 }
1081 1083
1084 void TestRunnerBindings::DumpPixelResults() {
1085 if (runner_)
1086 runner_->DumpPixelResults();
1087 }
1088
1082 void TestRunnerBindings::DumpChildFrameScrollPositions() { 1089 void TestRunnerBindings::DumpChildFrameScrollPositions() {
1083 if (runner_) 1090 if (runner_)
1084 runner_->DumpChildFrameScrollPositions(); 1091 runner_->DumpChildFrameScrollPositions();
1085 } 1092 }
1086 1093
1087 void TestRunnerBindings::DumpChildFramesAsText() { 1094 void TestRunnerBindings::DumpChildFramesAsText() {
1088 if (runner_) 1095 if (runner_)
1089 runner_->DumpChildFramesAsText(); 1096 runner_->DumpChildFramesAsText();
1090 } 1097 }
1091 1098
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 layout_test_runtime_flags_.set_generate_pixel_results(false); 2440 layout_test_runtime_flags_.set_generate_pixel_results(false);
2434 OnLayoutTestRuntimeFlagsChanged(); 2441 OnLayoutTestRuntimeFlagsChanged();
2435 } 2442 }
2436 2443
2437 void TestRunner::DumpAsTextWithPixelResults() { 2444 void TestRunner::DumpAsTextWithPixelResults() {
2438 layout_test_runtime_flags_.set_dump_as_text(true); 2445 layout_test_runtime_flags_.set_dump_as_text(true);
2439 layout_test_runtime_flags_.set_generate_pixel_results(true); 2446 layout_test_runtime_flags_.set_generate_pixel_results(true);
2440 OnLayoutTestRuntimeFlagsChanged(); 2447 OnLayoutTestRuntimeFlagsChanged();
2441 } 2448 }
2442 2449
2450 void TestRunner::DumpPixelResults() {
2451 layout_test_runtime_flags_.set_generate_pixel_results(true);
2452 OnLayoutTestRuntimeFlagsChanged();
2453 }
2454
2443 void TestRunner::DumpChildFrameScrollPositions() { 2455 void TestRunner::DumpChildFrameScrollPositions() {
2444 layout_test_runtime_flags_.set_dump_child_frame_scroll_positions(true); 2456 layout_test_runtime_flags_.set_dump_child_frame_scroll_positions(true);
2445 OnLayoutTestRuntimeFlagsChanged(); 2457 OnLayoutTestRuntimeFlagsChanged();
2446 } 2458 }
2447 2459
2448 void TestRunner::DumpChildFramesAsMarkup() { 2460 void TestRunner::DumpChildFramesAsMarkup() {
2449 layout_test_runtime_flags_.set_dump_child_frames_as_markup(true); 2461 layout_test_runtime_flags_.set_dump_child_frames_as_markup(true);
2450 OnLayoutTestRuntimeFlagsChanged(); 2462 OnLayoutTestRuntimeFlagsChanged();
2451 } 2463 }
2452 2464
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2794 2806
2795 void TestRunner::NotifyDone() { 2807 void TestRunner::NotifyDone() {
2796 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && 2808 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() &&
2797 !will_navigate_ && work_queue_.is_empty()) 2809 !will_navigate_ && work_queue_.is_empty())
2798 delegate_->TestFinished(); 2810 delegate_->TestFinished();
2799 layout_test_runtime_flags_.set_wait_until_done(false); 2811 layout_test_runtime_flags_.set_wait_until_done(false);
2800 OnLayoutTestRuntimeFlagsChanged(); 2812 OnLayoutTestRuntimeFlagsChanged();
2801 } 2813 }
2802 2814
2803 } // namespace test_runner 2815 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.h ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698