Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OOP iframe #172

Merged
merged 4 commits into from Dec 5, 2021
Merged

Support OOP iframe #172

merged 4 commits into from Dec 5, 2021

Conversation

YusukeIwaki
Copy link
Owner


it 'should track navigations within OOP iframes' do
page.goto(server_empty_page)
frame = page.wait_for_frame(predicate: -> (frame) { page.frames.index { |_frame| _frame == frame } == 1 }) do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - frame.


it 'should support OOP iframes becoming normal iframes again' do
page.goto(server_empty_page)
frame = page.wait_for_frame(predicate: -> (frame) { page.frames.index { |_frame| _frame == frame } == 1 }) do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - frame.


it 'should support OOP iframes getting detached' do
page.goto(server_empty_page)
frame = page.wait_for_frame(predicate: -> (frame) { page.frames.index { |_frame| _frame == frame } == 1 }) do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - frame.


it 'should keep track of a frames OOP state' do
page.goto(server_empty_page)
frame = page.wait_for_frame(predicate: -> (frame) { page.frames.index { |_frame| _frame == frame } == 1 }) do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - frame.


it 'should support evaluating in oop iframes' do
page.goto(server_empty_page)
frame = page.wait_for_frame(predicate: -> (frame) { page.frames.index { |_frame| _frame == frame } == 1 }) do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - frame.


it 'should provide access to elements' do
page.goto(server_empty_page)
frame = page.wait_for_frame(predicate: -> (frame) { page.frames.index { |_frame| _frame == frame } == 1 }) do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - frame.

end

it 'should report oopif frames' do
frame = page.wait_for_frame(predicate: -> (frame) { frame.url&.end_with?('/oopif.html') }) do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - frame.

@YusukeIwaki YusukeIwaki force-pushed the porting/7556 branch 2 times, most recently from a219c6c to d894f63 Compare December 4, 2021 07:09
@YusukeIwaki YusukeIwaki force-pushed the porting/7556 branch 3 times, most recently from da7e999 to 33deb65 Compare December 4, 2021 14:06
@YusukeIwaki YusukeIwaki merged commit 03e4cc5 into main Dec 5, 2021
@YusukeIwaki YusukeIwaki deleted the porting/7556 branch December 5, 2021 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant