1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 11:00:27 +00:00
TiddlyWiki5/tw2/source/tiddlywiki/test/js/TiddlerFields.js
Jeremy Ruston a1c8ac624f Added first pass at support for building TiddlyWiki 2.6.x with TW5
There are still some whitespace and attribute ordering issues, but the
result runs correctly.
2012-05-29 22:02:38 +01:00

24 lines
807 B
JavaScript
Executable File

jQuery(document).ready(function(){
module("TiddlerFields");
test("getValue", function() {
var val = store.getValue("testTiddler2","fieldvalue");
var val2 = store.getValue("testTiddler2","modified");
var val3 = store.getValue("testTiddler2","tags");
var val4 = store.getValue("testTiddler2","::slice");
var val5 = store.getValue("testTiddler2","##section");
var val6 = store.getValue("testTiddler2","##section2");
var val7 = store.getValue("testTiddler2","##Section3");
var val8 = store.getValue("testTiddler2","FieldValue");
strictEqual(val, "two");
strictEqual(val2, "199512010340");
strictEqual(val3, "testTag twoTag");
strictEqual(val4, "4t");
strictEqual(val5, "bar\n");
strictEqual(val6, "test\n");
strictEqual(val7, "welcome\n");
strictEqual(val8, "two");
});
});