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 8788 matching lines...) Loading... |
8799 // Crashes on Android: http://crbug.com/403804 | 8799 // Crashes on Android: http://crbug.com/403804 |
8800 #if OS(ANDROID) | 8800 #if OS(ANDROID) |
8801 TEST_P(ParameterizedWebFrameTest, DISABLED_PrintingBasic) | 8801 TEST_P(ParameterizedWebFrameTest, DISABLED_PrintingBasic) |
8802 #else | 8802 #else |
8803 TEST_P(ParameterizedWebFrameTest, PrintingBasic) | 8803 TEST_P(ParameterizedWebFrameTest, PrintingBasic) |
8804 #endif | 8804 #endif |
8805 { | 8805 { |
8806 FrameTestHelpers::WebViewHelper web_view_helper; | 8806 FrameTestHelpers::WebViewHelper web_view_helper; |
8807 web_view_helper.InitializeAndLoad("data:text/html,Hello, world."); | 8807 web_view_helper.InitializeAndLoad("data:text/html,Hello, world."); |
8808 | 8808 |
8809 WebFrame* frame = web_view_helper.WebView()->MainFrame(); | 8809 WebLocalFrame* frame = web_view_helper.WebView()->MainFrameImpl(); |
8810 | 8810 |
8811 WebPrintParams print_params; | 8811 WebPrintParams print_params; |
8812 print_params.print_content_area.width = 500; | 8812 print_params.print_content_area.width = 500; |
8813 print_params.print_content_area.height = 500; | 8813 print_params.print_content_area.height = 500; |
8814 | 8814 |
8815 int page_count = frame->PrintBegin(print_params); | 8815 int page_count = frame->PrintBegin(print_params); |
8816 EXPECT_EQ(1, page_count); | 8816 EXPECT_EQ(1, page_count); |
8817 frame->PrintEnd(); | 8817 frame->PrintEnd(); |
8818 } | 8818 } |
8819 | 8819 |
(...skipping 3397 matching lines...) Loading... |
12217 if (obj->IsText()) { | 12217 if (obj->IsText()) { |
12218 LayoutText* layout_text = ToLayoutText(obj); | 12218 LayoutText* layout_text = ToLayoutText(obj); |
12219 text = layout_text->GetText(); | 12219 text = layout_text->GetText(); |
12220 break; | 12220 break; |
12221 } | 12221 } |
12222 } | 12222 } |
12223 EXPECT_EQ("foo alt", text.Utf8()); | 12223 EXPECT_EQ("foo alt", text.Utf8()); |
12224 } | 12224 } |
12225 | 12225 |
12226 } // namespace blink | 12226 } // namespace blink |
OLD | NEW |