Bug 1100695 - Wait for child to finish in test_child_assert XPCShell unit test. r=chmanchester

This commit is contained in:
Andrew McCreight 2014-11-24 11:34:03 -08:00
parent c3552da3d5
commit c0b02a0607

View File

@ -76,7 +76,8 @@ function run_test () { run_next_test(); }
add_test(function test_child_assert () {
do_load_child_test_harness();
sendCommand("Assert.ok(true);");
do_test_pending("test child assertion");
sendCommand("Assert.ok(true);", do_test_finished);
run_next_test();
});
'''
@ -470,7 +471,8 @@ tail =
def testChild(self):
"""
Checks that calling do_load_child_test_harness without run_test_in_child
results in a usable test state.
results in a usable test state. This test has a spurious failure when
run using |mach python-test|. See bug 1103226.
"""
self.writeFile("test_child_assertions.js", CHILD_HARNESS_SIMPLE)
self.writeManifest(["test_child_assertions.js"])