[Bbs2ch-cvs 58] CVS update: bbs2chreader/content/bbs2chreader/test

Back to archive index

flyson flyso****@users*****
2005年 11月 20日 (日) 14:34:35 JST


Index: bbs2chreader/content/bbs2chreader/test/thread-test.js
diff -u bbs2chreader/content/bbs2chreader/test/thread-test.js:1.4 bbs2chreader/content/bbs2chreader/test/thread-test.js:1.5
--- bbs2chreader/content/bbs2chreader/test/thread-test.js:1.4	Sun Oct 30 06:47:48 2005
+++ bbs2chreader/content/bbs2chreader/test/thread-test.js	Sun Nov 20 14:34:34 2005
@@ -58,7 +58,12 @@
 
 	startThread: function(){
 		var threadURLSpec = this._channel.URI.spec.replace(/^bbs2ch:thread-test:/, "");
-		this.requestRespond("BAD URL :\t" + threadURLSpec);
+
+		var template = this._bbs2chService.readLocalURI(
+							"chrome://bbs2chreader/content/res/thread-error.txt");
+		template = template.replace(/%URL%/g, threadURLSpec)
+								.replace(/%STATUS%/g, "BAD URL");
+		this.requestRespond(template);
 		this.requestEnd();
 	},
 


bbs2ch-cvs メーリングリストの案内
Back to archive index