mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-30 16:16:56 +00:00
Update core tabs-macro to make it easier to extend for plugin authors. (#6578)
* tabs activate v5.2.2 tests add whitespace trim * tabs-macro -- add indentation and code preview * tabs-macro -- replace substitutions with variables * split tabs-macro macro into different elements - tabs-button - tabs-tab - tabs-tab-list - tabs-tab-body - tabs ... main macro * tabs: add cascade to button and reaveal widgets This will allow users to create "default tab" configurations similar to the tiddler info tab handling. * tabs-macro -- add code_body: yes
This commit is contained in:
@@ -54,31 +54,32 @@ describe("Tabs-macro HTML tests", function() {
|
||||
/ Run the tests
|
||||
--------------------*/
|
||||
// horizontal
|
||||
it("should render horizontal tabs v5.2.1", function() {
|
||||
/*
|
||||
xit("should render horizontal tabs v5.2.1", function() {
|
||||
expect(wiki.renderTiddler("text/html","test-tabs-macro-horizontal")).toBe(expected.fields.text);
|
||||
});
|
||||
|
||||
it("should render horizontal tabs macro with all parameters modified V5.2.1", function() {
|
||||
xit("should render horizontal tabs macro with all parameters modified V5.2.1", function() {
|
||||
expect(wiki.renderTiddler("text/html","test-tabs-macro-horizontal-all")).toBe(expectedAll.fields.text);
|
||||
});
|
||||
|
||||
// vertical
|
||||
it("should render tabs vertical tabs v5.2.1", function() {
|
||||
xit("should render tabs vertical tabs v5.2.1", function() {
|
||||
expect(wiki.renderTiddler("text/html","test-tabs-macro-vertical")).toBe(expectedVert.fields.text);
|
||||
});
|
||||
|
||||
*/
|
||||
// Future tests
|
||||
// horizontal
|
||||
xit("should render 'horizontal' tabs from v5.2.2 and up with whitespace trim", function() {
|
||||
it("should render 'horizontal' tabs from v5.2.2 and up with whitespace trim", function() {
|
||||
expect(wiki.renderTiddler("text/html","test-tabs-macro-horizontal")).toBe(expected.fields.text.replace(/\n/g,""));
|
||||
});
|
||||
|
||||
xit("should render 'horizontal' tabs from v5.2.2 and up with whitespace trim", function() {
|
||||
it("should render 'horizontal' tabs from v5.2.2 and up with whitespace trim", function() {
|
||||
expect(wiki.renderTiddler("text/html","test-tabs-macro-horizontal-all")).toBe(expectedAll.fields.text.replace(/\n/g,""));
|
||||
});
|
||||
|
||||
// vertical
|
||||
xit("should render 'vertical' tabs from v5.2.2 and up with whitespace trim", function() {
|
||||
it("should render 'vertical' tabs from v5.2.2 and up with whitespace trim", function() {
|
||||
expect(wiki.renderTiddler("text/html","test-tabs-macro-vertical")).toBe(expectedVert.fields.text.replace(/\n/g,""));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user