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

fix The document.open function throws an error because document.defaultView returns null (close #1272) #1279

Merged
merged 4 commits into from
Sep 4, 2017

Conversation

LavrovArtem
Copy link
Contributor

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 59a86aa have passed. See details:


var iframeDocument = iframe.contentDocument;
test('should not throw an error when document.defualtView is null', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

test(should not throw an error when document.defualtView is null (GH-1272))


strictEqual(nativeMethods.querySelectorAll.call(document, '.' + SHADOW_UI_CLASSNAME.selfRemovingScript).length, 0);
// NOTE: Without setTimeout the error does not reproduced
Copy link
Contributor

Choose a reason for hiding this comment

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

// NOTE: Without wrapping in 'setTimeout' function the error is not reproduced

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit b8fade9 have passed. See details:

@LavrovArtem
Copy link
Contributor Author

ping @churkin

2 similar comments
@LavrovArtem
Copy link
Contributor Author

ping @churkin

@LavrovArtem
Copy link
Contributor Author

ping @churkin

@churkin churkin merged commit cb25e7f into DevExpress:master Sep 4, 2017
@LavrovArtem LavrovArtem deleted the i1272 branch September 4, 2017 10:00
AndreyBelym pushed a commit to AndreyBelym/testcafe-hammerhead that referenced this pull request Feb 28, 2019
…ultView returns null` (close DevExpress#1272) (DevExpress#1279)

* fix `The document.open function throws an error because document.defaultView returns null` (close DevExpress#1272)

* test refactoring

* fix review's issues

* fix review's issues
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.

4 participants