diff -r 000000000000 -r 6474c204b198 toolkit/components/jsdownloads/test/unit/test_DownloadLegacy.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/components/jsdownloads/test/unit/test_DownloadLegacy.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,24 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=2 et sw=2 tw=80: */ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +/** + * Tests the integration with legacy interfaces for downloads. + */ + +"use strict"; + +//////////////////////////////////////////////////////////////////////////////// +//// Execution of common tests + +let gUseLegacySaver = true; + +let scriptFile = do_get_file("common_test_Download.js"); +Services.scriptloader.loadSubScript(NetUtil.newURI(scriptFile).spec); + +//////////////////////////////////////////////////////////////////////////////// +//// Termination + +let tailFile = do_get_file("tail.js"); +Services.scriptloader.loadSubScript(NetUtil.newURI(tailFile).spec);