Bug 1264782 - Fix test_storage.js regression due to application crash in [@ mozilla::AssertNotAlreadyCached]
authorStefan Sitter <ssitter@gmail.com>
Fri, 15 Apr 2016 08:47:15 +0200
changeset 25511 66f5a1abc1d9e4161e92d6d504aef2fbdd4fa632
parent 25510 49c8eeee2f6fb9a031125c4f5fdef6c3e48f2ac9
child 25512 20bb2372e5c52ca7e424daf419d8b5884182cdf1
push id300
push userclokep@gmail.com
push dateMon, 01 Aug 2016 16:37:12 +0000
bugs1264782
Bug 1264782 - Fix test_storage.js regression due to application crash in [@ mozilla::AssertNotAlreadyCached]
calendar/test/unit/test_storage.js
--- a/calendar/test/unit/test_storage.js
+++ b/calendar/test/unit/test_storage.js
@@ -1,17 +1,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 function run_test() {
-    do_calendar_startup(run_next_test);
+    do_calendar_startup(testAttachRoundtrip);
 }
 
-add_test(function testAttachRoundtrip() {
+function testAttachRoundtrip() {
     let storage = getStorageCal();
     let str = ["BEGIN:VEVENT",
                "UID:attachItem",
                "DTSTART:20120101T010101Z",
                "ATTACH;FMTTYPE=text/calendar;ENCODING=BASE64;FILENAME=test.ics:http://example.com/test.ics",
                "ATTENDEE;RSVP=TRUE;CUTYPE=INDIVIDUAL;CN=Name;PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT;X-THING=BAR:mailto:test@example.com",
                "RELATED-TO;RELTYPE=SIBLING;FOO=BAR:VALUE",
                "RRULE:FREQ=MONTHLY;INTERVAL=2;COUNT=5;BYDAY=MO",
@@ -95,9 +95,9 @@ add_test(function testAttachRoundtrip() 
         onOperationComplete: function() {
             if (!this.found) {
                 do_throw("Could not find item");
             }
             do_test_finished();
             run_next_test();
         }
     };
-});
+};