OOP PDF: Fix PrintWebViewHelper test issues with OOP PDF enabled.

OOP PDF causes that the print-preview page to contain an iframe of the
PDF extension instead of directly including a plugin element. However,
the tests for PrintWebViewHelper use a fake print-preview page that
cannot contain an iframe of the extension because the necessary
infrastructure is not available in the test. This relaxes the
expectations so that in tests where the pdf element isn't an iframe,
that element is used instead.

BUG=303491

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

Cr-Commit-Position: refs/heads/master@{#308450}
1 file changed