mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
http changed to https
This commit is contained in:
@ -133,7 +133,7 @@ export var test_getJSON_fail_when_result_is_not_JSON = function (done) {
|
|||||||
export var test_getJSONP = function (done) {
|
export var test_getJSONP = function (done) {
|
||||||
var result;
|
var result;
|
||||||
|
|
||||||
http.getJSON("http://demos.telerik.com/kendo-ui/service/Products").then(function (r) {
|
http.getJSON("https://jsfiddle.net/echo/jsonp/").then(function (r) {
|
||||||
result = r;
|
result = r;
|
||||||
try {
|
try {
|
||||||
TKUnit.assert(typeof (JSON.stringify(result)) === "string", "Result from getJSON() should be valid JSON object!");
|
TKUnit.assert(typeof (JSON.stringify(result)) === "string", "Result from getJSON() should be valid JSON object!");
|
||||||
@ -246,7 +246,7 @@ export var test_request_shouldFailIfOptionsUrlIsNotDefined = function (done) {
|
|||||||
|
|
||||||
export var test_request_requestShouldTimeout = function (done) {
|
export var test_request_requestShouldTimeout = function (done) {
|
||||||
var result;
|
var result;
|
||||||
http.request({ url: "http://10.255.255.1", method: "GET", timeout: 500 }).catch(function (e) {
|
http.request({ url: "https://10.255.255.1", method: "GET", timeout: 500 }).catch(function (e) {
|
||||||
result = e;
|
result = e;
|
||||||
try {
|
try {
|
||||||
TKUnit.assert(result instanceof Error, "Result from request().catch() should be Error! Current type is " + typeof result);
|
TKUnit.assert(result instanceof Error, "Result from request().catch() should be Error! Current type is " + typeof result);
|
||||||
@ -532,8 +532,8 @@ export var test_request_jsonAsContentSentAndReceivedProperly = function (done) {
|
|||||||
|
|
||||||
export var test_getString_FromVariousUrls_ShouldWorkProperly = function (done) {
|
export var test_getString_FromVariousUrls_ShouldWorkProperly = function (done) {
|
||||||
var urls = [
|
var urls = [
|
||||||
"http://it-ebooks-api.info/v1/book/1615005640",
|
"https://it-ebooks-api.info/v1/book/1615005640",
|
||||||
"http://www.telerik.com",
|
"https://www.telerik.com",
|
||||||
"https://spreadsheets.google.com/tq?key=1tJ64Y8hje0ui4ap9U33h3KWwpxT_-JuVMSZzxD2Er8k"
|
"https://spreadsheets.google.com/tq?key=1tJ64Y8hje0ui4ap9U33h3KWwpxT_-JuVMSZzxD2Er8k"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ export function testFromUrl(done) {
|
|||||||
// <snippet module="image-source" title="image-source">
|
// <snippet module="image-source" title="image-source">
|
||||||
// ### Load image from URL
|
// ### Load image from URL
|
||||||
// ``` JavaScript
|
// ``` JavaScript
|
||||||
imageSource.fromUrl("http://www.google.com/images/errors/logo_sm_2.png")
|
imageSource.fromUrl("https://www.google.com/images/errors/logo_sm_2.png")
|
||||||
.then(function (res: imageSource.ImageSource) {
|
.then(function (res: imageSource.ImageSource) {
|
||||||
//console.log("Image successfully loaded");
|
//console.log("Image successfully loaded");
|
||||||
// <hide>
|
// <hide>
|
||||||
|
@ -51,7 +51,7 @@ export class WebViewTest extends testModule.UITest<webViewModule.WebView> {
|
|||||||
// <hide>
|
// <hide>
|
||||||
try {
|
try {
|
||||||
TKUnit.assertNull(args.error, args.error);
|
TKUnit.assertNull(args.error, args.error);
|
||||||
TKUnit.assertEqual(args.url, "http://nsbuild01.telerik.com/docs/", "args.url");
|
TKUnit.assertEqual(args.url, "https://github.com/", "args.url");
|
||||||
done(null);
|
done(null);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
@ -60,7 +60,7 @@ export class WebViewTest extends testModule.UITest<webViewModule.WebView> {
|
|||||||
|
|
||||||
// </hide>
|
// </hide>
|
||||||
});
|
});
|
||||||
webView.url = "http://nsbuild01.telerik.com/docs/";
|
webView.url = "https://github.com/";
|
||||||
// ```
|
// ```
|
||||||
// </snippet>
|
// </snippet>
|
||||||
}
|
}
|
||||||
@ -172,7 +172,7 @@ export class WebViewTest extends testModule.UITest<webViewModule.WebView> {
|
|||||||
|
|
||||||
public testLoadUpperCaseSrc(done) {
|
public testLoadUpperCaseSrc(done) {
|
||||||
let webView = this.testView;
|
let webView = this.testView;
|
||||||
let targetSrc = "HTTP://nsbuild01.telerik.com/docs/";
|
let targetSrc = "HTTPS://github.com/";
|
||||||
|
|
||||||
webView.on(webViewModule.WebView.loadFinishedEvent, function (args: webViewModule.LoadEventData) {
|
webView.on(webViewModule.WebView.loadFinishedEvent, function (args: webViewModule.LoadEventData) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user