Skip to content

Commit

Permalink
Update test to call executeCrossDomainGet instead of loadURL
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamJamesWalters committed Apr 12, 2018
1 parent 1e54a12 commit 91fa231
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/script-tests/tests/devices/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ require(
timeout: 1000
};

device.loadURL('http://test.uri/', opts);
device = new Device({'networking': { 'supportsCORS': true }});
spyOn(device, '_newXMLHttpRequest').and.returnValue(mockXMLHttpRequest);

device.executeCrossDomainGet('http://test.uri/', opts);
expect(mockXMLHttpRequest.timeout).toEqual(1000);
});

Expand Down

0 comments on commit 91fa231

Please sign in to comment.