[gjs] testEverythingEncapsulated: Add an additional assertion

commit 43586ae9b1b166c13828d4b1f386617ace8d9319
Author: Colin Walters <walters verbum org>
Date:   Fri Oct 29 12:46:27 2010 -0400

    testEverythingEncapsulated: Add an additional assertion
    We fail this check in my current wip/xulrunner-2 branch.

 test/js/testEverythingEncapsulated.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/test/js/testEverythingEncapsulated.js b/test/js/testEverythingEncapsulated.js
index 30008ce..8dd82c2 100644
--- a/test/js/testEverythingEncapsulated.js
+++ b/test/js/testEverythingEncapsulated.js
@@ -77,6 +77,7 @@ function testBoxedCopyConstructor()
     // Copy an object from another object of the same type, shortcuts to the boxed copy
     let copy = new Everything.TestSimpleBoxedA(simple_boxed);
+    assertTrue(copy instanceof Everything.TestSimpleBoxedA);
     assertEquals(42, copy.some_int);
     assertEquals(43, copy.some_int8);
     assertEquals(42.5, copy.some_double);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]