Lint old tests

This commit is contained in:
impinball 2016-01-22 11:46:57 -05:00
parent b218f5156f
commit fb3a534de0
12 changed files with 2976 additions and 1903 deletions

View file

@ -45,6 +45,9 @@ window.mock = (function () {
"use strict"
var window = {}
window.window = window
var document = window.document = {
// FIXME: add document.createRange().createContextualFragment()
@ -136,7 +139,7 @@ window.mock = (function () {
name = name.toLowerCase()
var out = []
function traverse(node){
function traverse(node) {
if (node.childNodes && node.childNodes.length > 0) {
node.childNodes.forEach(function (curr) {
if (curr.nodeName.toLowerCase() === name) {
@ -156,7 +159,7 @@ window.mock = (function () {
window.scrollTo = function () {}
;(function (window) {
;(function () {
// This is an actual conforming implementation of the
// requestAnimationFrame spec, with the nonstandard extension of
// rAF.$resolve for running the callbacks. It works in Node and the
@ -212,7 +215,7 @@ window.mock = (function () {
}
window.requestAnimationFrame = requestAnimationFrame
})(window)
})()
window.XMLHttpRequest = (function () {
function Request() {