mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
Merge branch 'master' into multi-wiki-support
This commit is contained in:
commit
33fb857d6b
@ -42,7 +42,7 @@ var TW_TextNode = function(text) {
|
||||
this.textContent = text + "";
|
||||
};
|
||||
|
||||
Object.setPrototypeOf(TW_TextNode,TW_Node.prototype);
|
||||
Object.setPrototypeOf(TW_TextNode.prototype,TW_Node.prototype);
|
||||
|
||||
Object.defineProperty(TW_TextNode.prototype, "nodeType", {
|
||||
get: function() {
|
||||
@ -67,7 +67,7 @@ var TW_Element = function(tag,namespace) {
|
||||
this.namespaceURI = namespace || "http://www.w3.org/1999/xhtml";
|
||||
};
|
||||
|
||||
Object.setPrototypeOf(TW_Element,TW_Node.prototype);
|
||||
Object.setPrototypeOf(TW_Element.prototype,TW_Node.prototype);
|
||||
|
||||
Object.defineProperty(TW_Element.prototype, "style", {
|
||||
get: function() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
caption: {{$:/language/OfficialPluginLibrary}}
|
||||
tags: $:/tags/PluginLibrary
|
||||
title: $:/config/OfficialPluginLibrary
|
||||
url: https://tiddlywiki5-git-plugin-stability-badges-jermolenes-projects.vercel.app/library/v5.3.3/index.html
|
||||
tags: $:/tags/PluginLibrary
|
||||
url: https://tiddlywiki.com/library/v5.3.4/index.html
|
||||
caption: {{$:/language/OfficialPluginLibrary}}
|
||||
|
||||
Plugin library for https://tiddlywiki5-git-plugin-stability-badges-jermolenes-projects.vercel.app
|
||||
{{$:/language/OfficialPluginLibrary/Hint}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
caption: {{$:/language/OfficialPluginLibrary}}
|
||||
tags: $:/tags/PluginLibrary
|
||||
title: $:/config/OfficialPluginLibrary
|
||||
url: https://tiddlywiki5-git-plugin-stability-badges-jermolenes-projects.vercel.app/library/v5.3.3/index.html
|
||||
tags: $:/tags/PluginLibrary
|
||||
url: https://tiddlywiki.com/prerelease/library/v5.3.4/index.html
|
||||
caption: {{$:/language/OfficialPluginLibrary}} (Prerelease)
|
||||
|
||||
Plugin library for https://tiddlywiki5-git-plugin-stability-badges-jermolenes-projects.vercel.app
|
||||
The prerelease version of the official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team.
|
||||
|
27
editions/test/tiddlers/tests/test-fakedom.js
Normal file
27
editions/test/tiddlers/tests/test-fakedom.js
Normal file
@ -0,0 +1,27 @@
|
||||
/*\
|
||||
title: test-fakedom.js
|
||||
type: application/javascript
|
||||
tags: [[$:/tags/test-spec]]
|
||||
|
||||
Tests the fakedom that Tiddlywiki occasionally uses.
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
describe("fakedom tests", function() {
|
||||
|
||||
it("properly assigns nodeType based on DOM standards", function() {
|
||||
// According to MDN, ELEMENT_NODE == 1 && TEXT_NODE == 3
|
||||
// There are others, but currently they're not implemented in fakedom
|
||||
expect($tw.fakeDocument.createElement("div").nodeType).toBe(1);
|
||||
expect($tw.fakeDocument.createElement("div").ELEMENT_NODE).toBe(1);
|
||||
expect($tw.fakeDocument.createTextNode("text").nodeType).toBe(3);
|
||||
expect($tw.fakeDocument.createTextNode("text").TEXT_NODE).toBe(3);
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
Loading…
Reference in New Issue
Block a user