blob: cba694b4b881cbd90b9d2525df04f5d6cf7ac445 [file] [log] [blame] [edit]
import pytest
@pytest.fixture
def test_page(inline):
return inline("<div>foo</div>")
@pytest.fixture
def test_page2(inline):
return inline("<div>bar</div>")
@pytest.fixture
def test_page_cross_origin(inline):
return inline("<div>bar</div>", domain="alt")
@pytest.fixture
def test_page_multiple_frames(inline, test_page, test_page2):
return inline(f"<iframe src='{test_page}'></iframe><iframe src='{test_page2}'></iframe>")
@pytest.fixture
def test_page_nested_frames(inline, test_page_same_origin_frame):
return inline(f"<iframe src='{test_page_same_origin_frame}'></iframe>")
@pytest.fixture
def test_page_cross_origin_frame(inline, test_page_cross_origin):
return inline(f"<iframe src='{test_page_cross_origin}'></iframe>")
@pytest.fixture
def test_page_same_origin_frame(inline, test_page):
return inline(f"<iframe src='{test_page}'></iframe>")