Unreviewed. Update W3C WebDriver imported tests.
[WebKit-https.git] / WebDriverTests / imported / w3c / webdriver / tests / document_handling / page_source.py
1 import pytest
2
3 from tests.support.inline import inline
4
5
6 # 15.1.3 "Let source be the result returned from the outerHTML IDL attribute
7 #         of the document element"
8 def test_source_matches_outer_html(session):
9     session.url = inline("<html><head><title>Cheese</title><body>Peas")
10     expected_source = session.execute_script(
11         "return document.documentElement.outerHTML")
12
13     assert session.source == expected_source
14