>+ rv = bundle->FormatStringFromName(MOZ_UTF16("confirmDuplicateFolderRename"),
>+ formatStrings, 3, getter_Copies(confirmString));
If you'd used MOZ_ARRAY_LENGTH(formatStrings) it would have saved you the trouble of changing it each time ;-)
>+ } catch (e if e.result == 0x8055001a) {
>+ // catch only the expected error, otherwise fail the test.
Nice!
Comment on attachment 8377817
patch v5
>+ rv = bundle- >FormatStringFr omName( MOZ_UTF16( "confirmDuplica teFolderRename" ), Copies( confirmString) ); LENGTH( formatStrings) it would have saved you the trouble of changing it each time ;-)
>+ formatStrings, 3, getter_
If you'd used MOZ_ARRAY_
>+ } catch (e if e.result == 0x8055001a) {
>+ // catch only the expected error, otherwise fail the test.
Nice!