Util.JS: Remove now-unused code
This commit is contained in:
parent
92e842bf08
commit
0609fbc3d7
2 changed files with 0 additions and 61 deletions
|
|
@ -13,7 +13,6 @@ public class Util.JS.Test : TestCase {
|
|||
|
||||
public Test() {
|
||||
base("Util.JS.Test");
|
||||
add_test("escape_string", escape_string);
|
||||
add_test("to_variant", to_variant);
|
||||
add_test("to_value", to_value);
|
||||
}
|
||||
|
|
@ -26,16 +25,6 @@ public class Util.JS.Test : TestCase {
|
|||
this.context = null;
|
||||
}
|
||||
|
||||
public void escape_string() throws GLib.Error {
|
||||
assert(Util.JS.escape_string("\n") == """\n""");
|
||||
assert(Util.JS.escape_string("\r") == """\r""");
|
||||
assert(Util.JS.escape_string("\t") == """\t""");
|
||||
assert(Util.JS.escape_string("\'") == """\'""");
|
||||
assert(Util.JS.escape_string("\"") == """\"""");
|
||||
|
||||
assert(Util.JS.escape_string("something…\n") == """something…\n""");
|
||||
}
|
||||
|
||||
public void to_variant() throws GLib.Error {
|
||||
assert_equal(
|
||||
value_to_variant(new JSC.Value.null(this.context)).print(true),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue