Test_GtkBookmarks

Provides unit tests and examples for the GtkBookmarks lens.

Summary
Test_GtkBookmarksProvides unit tests and examples for the GtkBookmarks lens.
Augeas Tests
GtkBookmarks.lnsTest without label
GtkBookmarks.lnsTest with label
GtkBookmarks.lnsEmpty lines are allowed, not comments

Augeas Tests

GtkBookmarks.lns

test GtkBookmarks.lns get "ftp://user@myftp.com/somedir\n" = { "bookmark" = "ftp://user@myftp.com/somedir" }

Test without label

GtkBookmarks.lns

test GtkBookmarks.lns get "file:///home/rpinson/Ubuntu%20One Ubuntu One\n" = { "bookmark" = "file:///home/rpinson/Ubuntu%20One" { "label" = "Ubuntu One" } }

Test with label

GtkBookmarks.lns

test GtkBookmarks.lns get "ftp://user@myftp.com/somedir\n\nfile:///home/rpinson/Ubuntu%20One Ubuntu One\n" = { "bookmark" = "ftp://user@myftp.com/somedir" } { } { "bookmark" = "file:///home/rpinson/Ubuntu%20One" { "label" = "Ubuntu One" } }

Empty lines are allowed, not comments

Parses $HOME/.gtk-bookmarks
test GtkBookmarks.lns get "ftp://user@myftp.com/somedir\n" = { "bookmark" = "ftp://user@myftp.com/somedir" }
Test without label
Close