mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
remove the news-test.* files, they are no longer used. so why make people check them out?
This commit is contained in:
parent
a0d0284b26
commit
5b450c8310
@ -1,44 +0,0 @@
|
|||||||
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
||||||
*
|
|
||||||
* The contents of this file are subject to the Netscape Public
|
|
||||||
* License Version 1.1 (the "License"); you may not use this file
|
|
||||||
* except in compliance with the License. You may obtain a copy of
|
|
||||||
* the License at http://www.mozilla.org/NPL/
|
|
||||||
*
|
|
||||||
* Software distributed under the License is distributed on an "AS
|
|
||||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
||||||
* implied. See the License for the specific language governing
|
|
||||||
* rights and limitations under the License.
|
|
||||||
*
|
|
||||||
* The Original Code is mozilla.org code.
|
|
||||||
*
|
|
||||||
* The Initial Developer of the Original Code is Netscape
|
|
||||||
* Communications Corporation. Portions created by Netscape are
|
|
||||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
||||||
* Rights Reserved.
|
|
||||||
*
|
|
||||||
* Contributor(s):
|
|
||||||
*/
|
|
||||||
|
|
||||||
function doit() {
|
|
||||||
dump("start of doit()\n");
|
|
||||||
|
|
||||||
var str = document.getElementById('newsgroups').value;
|
|
||||||
var news = Components.classes['component://netscape/messenger/nntpservice'];
|
|
||||||
|
|
||||||
if (news) {
|
|
||||||
news = news.getService();
|
|
||||||
}
|
|
||||||
if (news) {
|
|
||||||
news = news.QueryInterface(Components.interfaces.nsINntpService);
|
|
||||||
}
|
|
||||||
if (news) {
|
|
||||||
try {
|
|
||||||
document.getElementById('result').value = news.convertNewsgroupsString(str);
|
|
||||||
}
|
|
||||||
catch (ex) {
|
|
||||||
dump(ex + "\n");
|
|
||||||
document.getElementById('result').value = "Error check console";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<window title="news test"
|
|
||||||
id="news-test-window" xmlns:html="http://www.w3.org/TR/REC-html40"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
||||||
|
|
||||||
<html:script language="javascript" src="news-test.js"/>
|
|
||||||
<html:div flex="100%">
|
|
||||||
|
|
||||||
<html:b>news tests</html:b>
|
|
||||||
<html:hr/>
|
|
||||||
<html:div>Newsgroups: can be a comma seperated list of these:</html:div>
|
|
||||||
<html:ul>
|
|
||||||
<html:li/>
|
|
||||||
news://host/group
|
|
||||||
<html:li/>
|
|
||||||
news://group
|
|
||||||
<html:li/>
|
|
||||||
host/group
|
|
||||||
<html:li/>
|
|
||||||
group
|
|
||||||
</html:ul>
|
|
||||||
we are not going to allow the user to cross post to multiple hosts.
|
|
||||||
if we detect that, we stop and return error.
|
|
||||||
<html:hr/>
|
|
||||||
<html:b>Newsgroups:</html:b>
|
|
||||||
<box align="horizontal" flex="100%">
|
|
||||||
<html:input id="newsgroups" type="text" style="min-width: 400px; min-height: 27px" flex="100%" onkeyup="if (event.which == 13) { doit(); }"/>
|
|
||||||
</box>
|
|
||||||
<html:br/>
|
|
||||||
<html:b>result:</html:b>
|
|
||||||
<box align="horizontal" flex="100%">
|
|
||||||
<html:input id="result" type="text" style="min-width: 400px; min-height: 27px" flex="100%"/>
|
|
||||||
</box>
|
|
||||||
</html:div>
|
|
||||||
</window>
|
|
Loading…
Reference in New Issue
Block a user