Skip to content

Commit

Permalink
Fix flaky xorigin-iframe-handler embed-size test (ampproject#9013)
Browse files Browse the repository at this point in the history
* Fix flaky xorigin-iframe-handler embed-size test

* lint
  • Loading branch information
jridgewell authored and Eric Kenney committed May 3, 2017
1 parent acd61c5 commit d95ceac
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -258,15 +258,15 @@ describe('amp-ad-xorigin-iframe-handler', () => {
iframeHandler.init(iframe);
});

// TODO(#8965) unskip test
it.configure().skipOldChrome()
.run('should be able to use embed-state API', () => {
it('should be able to use embed-state API', () => {
sandbox.stub/*OK*/(iframeHandler.viewer_, 'isVisible', () => true);
iframe.postMessageToParent({
type: 'send-embed-state',
sentinel: 'amp3ptest' + testIndex,
});
return iframe.expectMessageFromParent('embed-state').then(data => {
expect(data).to.jsonEqual({inViewport: false,
expect(data).to.jsonEqual({
inViewport: false,
pageHidden: false,
type: 'embed-state',
sentinel: 'amp3ptest' + testIndex,
Expand Down

0 comments on commit d95ceac

Please sign in to comment.