Add editorconfig, resolve differences

This includes newlines, tabs, among other things.
This commit is contained in:
impinball 2016-06-18 02:59:42 -04:00
parent 80d0a69dab
commit b4fb21475c
90 changed files with 1707 additions and 1701 deletions

View file

@ -15,20 +15,20 @@ o.spec("updateFragment", function() {
o("updates fragment", function() {
var vnode = {tag: "[", children: [{tag: "a"}]}
var updated = {tag: "[", children: [{tag: "b"}]}
render(root, [vnode])
render(root, [updated])
o(updated.dom).equals(root.firstChild)
o(updated.dom.nodeName).equals("B")
})
o("adds els", function() {
var vnode = {tag: "[", children: []}
var updated = {tag: "[", children: [{tag: "a"}, {tag: "b"}]}
render(root, [vnode])
render(root, [updated])
o(updated.dom).equals(root.firstChild)
o(updated.domSize).equals(2)
o(root.childNodes.length).equals(2)
@ -38,10 +38,10 @@ o.spec("updateFragment", function() {
o("removes els", function() {
var vnode = {tag: "[", children: [{tag: "a"}, {tag: "b"}]}
var updated = {tag: "[", children: []}
render(root, [vnode])
render(root, [updated])
o(updated.dom).equals(null)
o(updated.domSize).equals(0)
o(root.childNodes.length).equals(0)
@ -49,20 +49,20 @@ o.spec("updateFragment", function() {
o("updates from childless fragment", function() {
var vnode = {tag: "["}
var updated = {tag: "[", children: [{tag: "a"}]}
render(root, [vnode])
render(root, [updated])
o(updated.dom).equals(root.firstChild)
o(updated.dom.nodeName).equals("A")
})
o("updates to childless fragment", function() {
var vnode = {tag: "[", children: [{tag: "a"}]}
var updated = {tag: "["}
render(root, [vnode])
render(root, [updated])
o(updated.dom).equals(null)
o(root.childNodes.length).equals(0)
})