From: Kalle Vahlman Date: Tue, 21 Apr 2009 12:01:35 +0000 (+0300) Subject: [html] Enable variant tests in unit.html X-Git-Tag: 1.0~50 X-Git-Url: https://sandbox.movial.com/gitweb/?p=browser-dbus-bridge.git;a=commitdiff_plain;h=25c2eb7d63ee940f9a1e9e658e7e84cdc3525815 [html] Enable variant tests in unit.html --- diff --git a/html/unit.html b/html/unit.html index 863f365..12d7421 100644 --- a/html/unit.html +++ b/html/unit.html @@ -389,12 +389,16 @@ function do_unit() deep_sig += "}"; tests[i++] = new Test("Dict", deep, null, false, deep_sig); -/* TODO: We don't really yet know how exactly we want these to go... tests[i++] = new Test("Variant", "woot", null, false, 'v'); - tests[i++] = new Test("Variant", 1, dbus.Variant, false); - tests[i++] = new Test("Variant", "woot", dbus.Variant, false, 'v'); - tests[i++] = new Test("Variant", ["woot", "bar"], dbus.Variant, false, 'v'); + tests[i++] = new Test("Variant", ["woot", "bar"], null, false, 'v'); + + var dict = new Object(); + dict["abc åäö"] = "abc åäö"; + var dict2 = new Object(); + dict2["def"] = "bleb"; + tests[i++] = new Test("Variant", [dict, dict2], null, false, 'v'); +/* TODO: We don't really yet know how exactly we want these to go... var struct = new Object(); struct.what = "that"; struct.how_many = 42;