Index: content/test/plugin/plugin_windowed_test.cc |
=================================================================== |
--- content/test/plugin/plugin_windowed_test.cc (revision 233351) |
+++ content/test/plugin/plugin_windowed_test.cc (working copy) |
@@ -38,7 +38,8 @@ |
} |
if ((test_name() == "create_instance_in_paint" && test_id() == "1") || |
- test_name() == "alert_in_window_message") { |
+ test_name() == "alert_in_window_message" || |
+ test_name() == "set_title_in_paint") { |
static ATOM window_class = 0; |
if (!window_class) { |
WNDCLASSEX wcex; |
@@ -133,6 +134,10 @@ |
// and verify that we don't hang the browser. |
CallJSFunction(this_ptr, "CallAlert"); |
CallJSFunction(this_ptr, "CallAlert"); |
+ } else if (this_ptr->test_name() == "set_title_in_paint" && |
+ message == WM_PAINT) { |
+ this_ptr->done_ = true; |
+ CallJSFunction(this_ptr, "SetTitle"); |
} |
if (this_ptr->done_) { |