1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 11:00:27 +00:00
TiddlyWiki5/editions/tw2/source/tiddlywiki/test/js/TiddlerFields.js
2012-11-16 21:20:27 +00: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");
});
});