From f488d23d79baa7d6ada807c20fe3c17e674f4202 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 1 Apr 1999 08:07:11 +0000 Subject: [PATCH] New test for XPIDL stuff. --- rdf/resources/xpidl-test-1.xul | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 rdf/resources/xpidl-test-1.xul diff --git a/rdf/resources/xpidl-test-1.xul b/rdf/resources/xpidl-test-1.xul new file mode 100644 index 00000000000..7894749c55e --- /dev/null +++ b/rdf/resources/xpidl-test-1.xul @@ -0,0 +1,48 @@ + + + + + + +function RenamePersonalToolbar() +{ + var db = document.getElementById("tree").database; + + var personalToolbarFolder = + document.rdf.GetResource("NC:PersonalToolbarFolder"); + + var NC_name = + document.rdf.GetResource("http://home.netscape.com/NC-rdf#Name"); + + var oldNameLiteral = db.GetTarget(personalToolbarFolder, NC_name, true); + + dump("old name was " + oldNameLiteral + "\n"); + + var newName = + document.rdf.GetLiteral("Hello, goof ball"); + + db.Assert(personalToolbarFolder, NC_name, newName, true); +} + + + +Remove Personal Toolbar + + + + + + + Name + URL + + + + + + + +