mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1335645 - Part 5 - Fix warning when test.relativeURI is undefined r=junior
MozReview-Commit-ID: HosOLS1Rzpi --HG-- extra : rebase_source : d1b1334900f322fd1be41850aa8f2edc75f440fe
This commit is contained in:
parent
d02d28082c
commit
ef2a24017c
@ -1,4 +1,10 @@
|
||||
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
Components.utils.import("resource://gre/modules/NetUtil.jsm");
|
||||
|
||||
var gIoService = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
@ -300,7 +306,8 @@ function do_check_property(aTest, aURI, aPropertyName, aTestFunctor) {
|
||||
function do_test_uri_basic(aTest) {
|
||||
var URI;
|
||||
|
||||
do_info("Basic tests for " + aTest.spec + " relative URI: " + aTest.relativeURI);
|
||||
do_info("Basic tests for " + aTest.spec +
|
||||
" relative URI: " + (aTest.relativeURI === undefined ? "(none)" : aTest.relativeURI) );
|
||||
|
||||
try {
|
||||
URI = NetUtil.newURI(aTest.spec);
|
||||
|
Loading…
Reference in New Issue
Block a user