hints: add xfailed tests for hinting inside iframes

This commit is contained in:
Jakub Klinkovský 2016-02-24 23:15:13 +01:00
parent b1207650b0
commit d4ea62a834
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hinting inside an iframe</title>
</head>
<body>
<iframe style="margin: 50px;" src="/data/hints/html/wrapped.html"></iframe>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Scrolling inside an iframe</title>
</head>
<body>
<iframe style="margin: 50px;" src="/data/scroll.html"></iframe>
</body>
</html>

View File

@ -9,3 +9,24 @@ Feature: Using hints
And I run :hint links normal And I run :hint links normal
And I run :follow-hint xyz And I run :follow-hint xyz
Then the error "No hint xyz!" should be shown Then the error "No hint xyz!" should be shown
### iframes
@xfail
Scenario: Using :follow-hint inside an iframe
When I open data/hints/iframe.html
And I run :hint all normal
And I run :follow-hint a
And I run :hint links normal
And I run :follow-hint a
Then data/hello.txt should be loaded
@xfail
Scenario: Using :follow-hint inside a scrolled iframe
When I open data/hints/iframe_scroll.html
And I run :hint all normal
And I run :follow-hint a
And I run :scroll bottom
And I run :hint links normal
And I run :follow-hint a
Then data/hello2.txt should be loaded