Trigger full html.css styles for some printing tests.
commita0e14bd9dc2fe192cdc0c9ecbeaee4d22f1101b8
authorrune@opera.com <rune@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 4 Oct 2013 20:33:29 +0000 (4 20:33 +0000)
committerrune@opera.com <rune@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 4 Oct 2013 20:33:29 +0000 (4 20:33 +0000)
treef481c89042e0d31262eef519b806436ad6a9cb71
parent3f61b9cbabfeabe197d0423ec3d6c28b544249fc
Trigger full html.css styles for some printing tests.

In Blink, @page UA styles is missing from the simple html stylesheet which
is used instead of html.css for documents which contains a certain subset
of html element types. Adding that @page rule to that simplified stylesheet
will change the actual results for these tests which have expectations
relying on that bug[1]:

  PrintWebViewHelperPreviewTest.PrintPreviewShrinkToFitPage
  PrintWebViewHelperPreviewTest.PrintPreviewCenterToFitPage

This CL changes the expected results and adds a <p> element to those tests
in order to trigger the correct @page rule from html.css without the fix in
Blink. Then the Blink fix[2] can land and be rolled into chromium without
affecting the results of the mentioned tests.

After the Blink fix is rolled into chromium, the <p> elements can be safely
removed again.

[1] https://code.google.com/p/chromium/issues/detail?id=304021
[2] https://codereview.chromium.org/25856002/

R=vitalybuka@chromium.org
BUG=304021

Review URL: https://codereview.chromium.org/25446005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227076 0039d316-1c4b-4281-b951-d872f2087c98
chrome/renderer/printing/print_web_view_helper_browsertest.cc