Generate Java interface from nsError.h. Not part of build. a=mkaply

git-svn-id: svn://10.0.0.236/trunk@172089 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2005-04-13 19:04:57 +00:00
parent 20a18d91cf
commit 73cbbeaf63
4 changed files with 176 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
*
* The Initial Developer of the Original Code is
* IBM Corporation.
* Portions created by the Initial Developer are Copyright (C) 2004
* Portions created by the Initial Developer are Copyright (C) 2005
* IBM Corporation. All Rights Reserved.
*
* Contributor(s):
@@ -120,7 +120,11 @@ public class TestArray {
assertEqual(index, expectedIndex[count]));
} while (true);
} catch (XPCOMException e) {
// array.indexOf() did not find the element
// If array.indexOf() did not find the element, it returns
// NS_ERROR_FAILURE.
if (e.errorcode != XPCOM.NS_ERROR_FAILURE) {
throw e;
}
}
index = lastIndexOf(array, foo);