1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/places/tests/unit/test_420331_wyciwyg.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim:set ts=2 sw=2 sts=2 et: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +function run_test() 1.11 +{ 1.12 + run_next_test(); 1.13 +} 1.14 + 1.15 +add_task(function test_execute() 1.16 +{ 1.17 + var testURI = uri("wyciwyg://nodontjudgeabookbyitscover"); 1.18 + 1.19 + try 1.20 + { 1.21 + yield promiseAddVisits(testURI); 1.22 + do_throw("Should have generated an exception."); 1.23 + } catch (ex if ex && ex.result == Cr.NS_ERROR_ILLEGAL_VALUE) { 1.24 + // Adding wyciwyg URIs should raise NS_ERROR_ILLEGAL_VALUE. 1.25 + } 1.26 +});