-
Notifications
You must be signed in to change notification settings - Fork 174
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 XhrSandbox.openNativeXhr function calls non native the xhr.setRequestHeader function
(close #1252)
#1254
Conversation
…etRequestHeader function` (close DevExpress#1252)
❌ Tests for the commit ff3128e have failed. See details: |
❌ Tests for the commit f4bcdb9 have failed. See details: |
@testcafe-build-bot \retest |
✅ Tests for the commit f4bcdb9 have passed. See details: |
@@ -17,6 +17,13 @@ QUnit.testDone(function () { | |||
iframeSandbox.off(iframeSandbox.RUN_TASK_SCRIPT_EVENT, initIframeTestHandler); | |||
}); | |||
|
|||
function findPrototypeWithProp (obj, prop) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getPrototypeFromChainContainsProp (obj, prop)
@@ -43,6 +50,23 @@ test('createNativeXHR', function () { | |||
ok(xhr instanceof nativeMethods.XMLHttpRequest); | |||
|
|||
window.XMLHttpRequest = nativeMethods.XMLHttpRequest; | |||
|
|||
var isWrappedFunctionRE = /^return 'function wrapped'$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var isWrappedFunctionRE = /^return 'function is wrapped'$/;
✅ Tests for the commit 150eabb have passed. See details: |
…etRequestHeader function` (close DevExpress#1252) (DevExpress#1254) * fix `The XhrSandbox.openNativeXhr function calls non native the xhr.setRequestHeader function` (close DevExpress#1252) * fix test * test refactoring
/cc @miherlosev @churkin