UNITTEST overview ----------------- - dir = new Ida.Dir(path) - dir.exists() - dir.create() - dir.open(aMode, aPerms) - dir.read() - dir.readline() [must throw exception, because this is only for files] - dir.write() [must throw exception, because this is only for files] - dir.rename(newLeafName) - dir.remove() - dir.URL UNITTEST started: Tue Mar 20 2007 22:58:50 GMT+0100 (CET) UNITTEST test cycle ------------------- using path: chrome://development/content/unittests/data/banana UNITTEST operation:new Ida.Dir() UNITTEST exception caught: ERR_MISSING_ARGUMENT fs.js#File.prototype.init: 0 Das Argument "absURL" fehlt, oder ist undefiniert. @chrome://ida/content/js/authoring/fs.js:422 ()@chrome://ida/content/js/authoring/fs.js:1471 ()@chrome://development/content/unittests/fs.js:474 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:new Ida.Dir(path) path: chrome://development/content/unittests/data/banana UNITTEST --- success --- UNITTEST operation:f.exists() before create() result: false UNITTEST --- success --- UNITTEST operation:f.create() UNITTEST --- success --- UNITTEST operation:f.exists() after create() result: true UNITTEST --- success --- UNITTEST operation:f.write("Dies ist ein Test") with not opened file UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:558 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:558 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.close() without opening result: undefined UNITTEST --- success --- UNITTEST operation:f.open() UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:592 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:592 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.write("Dies ist ein Test") with directory opened without arguments UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:620 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:620 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.close() result: undefined UNITTEST --- success --- UNITTEST operation:f.open("r") UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:654 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:654 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.write("Dies ist ein Test") with directory opened read only UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:682 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:682 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.close() result: undefined UNITTEST --- success --- UNITTEST operation:f.open("w") UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:716 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:716 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.write("Dies ist ein Test") with directory opened for writing UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:744 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:744 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.close() result: undefined UNITTEST --- success --- UNITTEST operation:f.open("a") UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:778 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:656 ()@chrome://development/content/unittests/fs.js:778 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.write("Dies ist ein Test") with file opened for appending UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:806 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:1274 ()@chrome://development/content/unittests/fs.js:806 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.close() result: undefined UNITTEST --- success --- UNITTEST operation:f.readline() UNITTEST exception caught: ERR_OBJECT_IS_NO_FILE @chrome://ida/content/js/authoring/fs.js:897 ()@chrome://development/content/unittests/fs.js:840 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @: 0 Das Objekt "/Users/georgmaa1/XulRunnerApps/Ida/IDA.app/Contents/extensions/_development/unittests/data/banana" ist keine Datei. @chrome://ida/content/js/authoring/fs.js:897 ()@chrome://development/content/unittests/fs.js:840 oncommand([object XULCommandEvent])@chrome://ida/content/windows/mainwindow.xul:1 @:0 UNITTEST --- success --- UNITTEST operation:f.read() result: UNITTEST --- success --- UNITTEST operation:f.close() result: undefined UNITTEST --- success --- UNITTEST operation:f.URL result: chrome://development/content/unittests/data/banana/ UNITTEST --- success --- UNITTEST operation:f.remove() result: undefined UNITTEST --- success (not verified) --- UNITTEST operation:f.exists() after remove() result: false UNITTEST --- success of verification attempt --- UNITTEST --- success of remove verified --- UNITTEST -------------------------- statistics -------------------------- total: 25 succeeded: 25 failed: 0 time: 42 ms UNITTEST finished: Tue Mar 20 2007 22:58:50 GMT+0100 (CET)