OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 8790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8801 // Crashes on Android: http://crbug.com/403804 | 8801 // Crashes on Android: http://crbug.com/403804 |
8802 #if OS(ANDROID) | 8802 #if OS(ANDROID) |
8803 TEST_P(ParameterizedWebFrameTest, DISABLED_PrintingBasic) | 8803 TEST_P(ParameterizedWebFrameTest, DISABLED_PrintingBasic) |
8804 #else | 8804 #else |
8805 TEST_P(ParameterizedWebFrameTest, PrintingBasic) | 8805 TEST_P(ParameterizedWebFrameTest, PrintingBasic) |
8806 #endif | 8806 #endif |
8807 { | 8807 { |
8808 FrameTestHelpers::WebViewHelper web_view_helper; | 8808 FrameTestHelpers::WebViewHelper web_view_helper; |
8809 web_view_helper.InitializeAndLoad("data:text/html,Hello, world."); | 8809 web_view_helper.InitializeAndLoad("data:text/html,Hello, world."); |
8810 | 8810 |
8811 WebFrame* frame = web_view_helper.WebView()->MainFrame(); | 8811 WebLocalFrame* frame = web_view_helper.WebView()->MainFrameImpl(); |
8812 | 8812 |
8813 WebPrintParams print_params; | 8813 WebPrintParams print_params; |
8814 print_params.print_content_area.width = 500; | 8814 print_params.print_content_area.width = 500; |
8815 print_params.print_content_area.height = 500; | 8815 print_params.print_content_area.height = 500; |
8816 | 8816 |
8817 int page_count = frame->PrintBegin(print_params); | 8817 int page_count = frame->PrintBegin(print_params); |
8818 EXPECT_EQ(1, page_count); | 8818 EXPECT_EQ(1, page_count); |
8819 frame->PrintEnd(); | 8819 frame->PrintEnd(); |
8820 } | 8820 } |
8821 | 8821 |
(...skipping 3417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12239 if (obj->IsText()) { | 12239 if (obj->IsText()) { |
12240 LayoutText* layout_text = ToLayoutText(obj); | 12240 LayoutText* layout_text = ToLayoutText(obj); |
12241 text = layout_text->GetText(); | 12241 text = layout_text->GetText(); |
12242 break; | 12242 break; |
12243 } | 12243 } |
12244 } | 12244 } |
12245 EXPECT_EQ("foo alt", text.Utf8()); | 12245 EXPECT_EQ("foo alt", text.Utf8()); |
12246 } | 12246 } |
12247 | 12247 |
12248 } // namespace blink | 12248 } // namespace blink |
OLD | NEW |