Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Land: move away from deprecated 'sys' module

  • Loading branch information...
commit 1efb7c8cb11fab563f25d3077602eb2097ec778e 1 parent 350575f
@tmpvar authored
View
21 example/browser/browser.js
@@ -1,6 +1,3 @@
-
-var sys = require('sys');
-
var dom = require('../../lib/jsdom/level2/html').dom.level2.html;
var browser = require('../../lib/jsdom/browser/index').windowAugmentation(dom);
@@ -24,14 +21,14 @@ el2.id = 'foo2bar';
el2.innerHTML = '<em class="odd">This is a test</em> This <strong>is another</strong> test ';
browser.document.body.appendChild(el2);
-sys.puts('getElementByid(foo2bar): ' + browser.document.getElementById('foo2bar'));
-sys.puts('getElementByid(foo): ' + browser.document.getElementById('foo'));
-sys.puts('getElementByTagName(em): ' + browser.document.getElementsByTagName('em'));
-sys.puts('getElementByClassName(odd): ' + browser.document.getElementsByClassName('odd'));
+console.log('getElementByid(foo2bar): ' + browser.document.getElementById('foo2bar'));
+console.log('getElementByid(foo): ' + browser.document.getElementById('foo'));
+console.log('getElementByTagName(em): ' + browser.document.getElementsByTagName('em'));
+console.log('getElementByClassName(odd): ' + browser.document.getElementsByClassName('odd'));
-sys.puts('');
-sys.puts('document.body.outerHTML: ');
-sys.puts(document.body.outerHTML);
+console.log('');
+console.log('document.body.outerHTML: ');
+console.log(document.body.outerHTML);
-sys.puts('document.outerHTML: ');
-sys.puts(document.outerHTML);
+console.log('document.outerHTML: ');
+console.log(document.outerHTML);
View
21 example/node-xml/run.js
@@ -1,5 +1,4 @@
-var sys = require('sys'),
- dom = require("../../lib/jsdom/level1/core").dom.level1.core;
+var dom = require("../../lib/jsdom/level1/core").dom.level1.core;
// git clone git://github.com/robrighter/node-xml.git into ~/.node_libraries
var xml = require("node-xml/lib/node-xml");
@@ -9,36 +8,36 @@ var currentElement = doc;
var totalElements = 0;
var parser = new xml.SaxParser(function(cb) {
cb.onStartDocument(function() {
-
+
});
cb.onEndDocument(function() {
- sys.puts((doc.getElementsByTagName("*").length === totalElements) ? "success" : "fail");
+ console.log((doc.getElementsByTagName("*").length === totalElements) ? "success" : "fail");
});
cb.onStartElementNS(function(elem, attrs, prefix, uri, namespaces) {
totalElements++;
var element = doc.createElement(elem);
currentElement.appendChild(element);
currentElement = element;
- sys.puts("=> Started: " + elem + " uri="+uri +" (Attributes: " + JSON.stringify(attrs) + " )");
+ console.log("=> Started: " + elem + " uri="+uri +" (Attributes: " + JSON.stringify(attrs) + " )");
});
cb.onEndElementNS(function(elem, prefix, uri) {
currentElement = currentElement.parentNode;
- sys.puts("<= End: " + elem + " uri="+uri + "\n");
+ console.log("<= End: " + elem + " uri="+uri + "\n");
});
cb.onCharacters(function(chars) {
-
+
});
cb.onCdata(function(cdata) {
- sys.puts('<CDATA>'+cdata+"</CDATA>");
+ console.log('<CDATA>'+cdata+"</CDATA>");
});
cb.onComment(function(msg) {
- sys.puts('<COMMENT>'+msg+"</COMMENT>");
+ console.log('<COMMENT>'+msg+"</COMMENT>");
});
cb.onWarning(function(msg) {
- sys.puts('<WARNING>'+msg+"</WARNING>");
+ console.log('<WARNING>'+msg+"</WARNING>");
});
cb.onError(function(msg) {
- sys.puts('<ERROR>'+JSON.stringify(msg)+"</ERROR>");
+ console.log('<ERROR>'+JSON.stringify(msg)+"</ERROR>");
});
});
View
93 example/pure/pure.js
@@ -11,7 +11,7 @@
*/
exports.pureInit = function(window, document) {
var $p, pure = $p = function(){
- var sel = arguments[0],
+ var sel = arguments[0],
ctxt = false;
if(typeof sel === 'string'){
@@ -39,7 +39,7 @@ exports.pureInit = function(window, document) {
default:
templates = [sel];
}
-
+
for(var i = 0, ii = templates.length; i < ii; i++){
plugins[i] = templates[i];
}
@@ -56,7 +56,7 @@ exports.pureInit = function(window, document) {
IMG:'src',
INPUT:'value'
};
-
+
return plugins;
@@ -74,7 +74,7 @@ exports.pureInit = function(window, document) {
}
throw('pure error: ' + e);
}
-
+
//return a new instance of plugins
function getPlugins(){
var plugins = $p.plugins,
@@ -86,14 +86,14 @@ exports.pureInit = function(window, document) {
f.prototype.render = plugins.render || render;
f.prototype.autoRender = plugins.autoRender || autoRender;
f.prototype.find = plugins.find || find;
-
+
// give the compiler and the error handling to the plugin context
f.prototype._compiler = compiler;
f.prototype._error = error;
-
+
return new f();
}
-
+
// returns the outer HTML of a node
function outerHTML(node){
// if IE take the internal method otherwise build one
@@ -111,7 +111,7 @@ exports.pureInit = function(window, document) {
function isArray(o){
return Object.prototype.toString.call( o ) === "[object Array]";
}
-
+
// returns the string generator function
function wrapquote(qfn, f){
return function(ctxt){
@@ -135,7 +135,7 @@ exports.pureInit = function(window, document) {
}
return leaf;
};
-
+
// default find using querySelector when available on the browser
function find(n, sel){
if(typeof n === 'string'){
@@ -148,7 +148,7 @@ exports.pureInit = function(window, document) {
error('You can test PURE standalone with: iPhone, FF3.5+, Safari4+ and IE8+\n\nTo run PURE on your browser, you need a JS library/framework with a CSS selector engine');
}
}
-
+
// create a function that concatenates constant string
// sections (given in parts) and the results of called
// functions to fill in the gaps between parts (fns).
@@ -164,7 +164,7 @@ exports.pureInit = function(window, document) {
for(var i = 1; i < n; i++){
fnVal = fns[i]( ctxt );
pVal = parts[i];
-
+
// if the value is empty and attribute, remove it
if(fnVal === ''){
attLine = strs[ strs.length - 1 ];
@@ -173,7 +173,7 @@ exports.pureInit = function(window, document) {
pVal = pVal.substr( 1 );
}
}
-
+
strs[ strs.length ] = fnVal;
strs[ strs.length ] = pVal;
}
@@ -190,7 +190,7 @@ exports.pureInit = function(window, document) {
if(m[1] === 'item'){
error('"item<-..." is a reserved word for the current running iteration.\n\nPlease choose another name for your loop.');
}
- if( !m[2] || (m[2] && (/context/i).test(m[2]))){ //undefined or space(IE)
+ if( !m[2] || (m[2] && (/context/i).test(m[2]))){ //undefined or space(IE)
m[2] = function(ctxt){return ctxt.context;};
}
return {name: m[1], sel: m[2]};
@@ -257,12 +257,12 @@ exports.pureInit = function(window, document) {
if( !m ){
error( 'bad selector syntax: ' + sel );
}
-
+
prepend = m[1];
selector = m[2];
attr = m[3];
append = m[4];
-
+
if(selector === '.' || ( !selector && attr ) ){
target[0] = dom;
}else{
@@ -278,7 +278,7 @@ exports.pureInit = function(window, document) {
append = sel.append;
target = [dom];
}
-
+
if( prepend || append ){
if( prepend && append ){
error('append/prepend cannot take place at the same time');
@@ -328,7 +328,7 @@ exports.pureInit = function(window, document) {
}
};
}else{
- getstr = function(node){
+ getstr = function(node){
return node.innerHTML;
};
setstr = function(node, s, ap){
@@ -340,21 +340,21 @@ exports.pureInit = function(window, document) {
}
};
}
- quotefn = function(s){
+ quotefn = function(s){
return s;
};
}
var setfn;
if(prepend){
- setfn = function(node, s){
+ setfn = function(node, s){
setstr( node, s + getstr( node ) , true);
};
}else if(append){
- setfn = function(node, s){
+ setfn = function(node, s){
setstr( node, getstr( node ) + s , true);
};
}else{
- setfn = function(node, s){
+ setfn = function(node, s){
setstr( node, s );
};
}
@@ -388,8 +388,8 @@ exports.pureInit = function(window, document) {
a.sort(sorter);
}
//loop on array
- for(var i = 0, ii = a.length || 0; i < ii; i++){
- buildArg(i, temp);
+ for(var i = 0, ii = a.length || 0; i < ii; i++){
+ buildArg(i, temp);
}
}else{
if(typeof sorter !== 'undefined'){
@@ -397,7 +397,7 @@ exports.pureInit = function(window, document) {
}
//loop on collections
for(var prop in a){
- a.hasOwnProperty( prop ) && buildArg(prop, temp);
+ a.hasOwnProperty( prop ) && buildArg(prop, temp);
}
}
@@ -435,7 +435,7 @@ exports.pureInit = function(window, document) {
itersel = dataselectfn(spec.sel),
target = gettarget(dom, sel, true),
nodes = target.nodes;
-
+
for(i = 0; i < nodes.length; i++){
var node = nodes[i],
inner = compiler(node, dsel);
@@ -444,7 +444,7 @@ exports.pureInit = function(window, document) {
setsig(target, fns.length - 1);
}
}
-
+
function getAutoNodes(n, data){
var ns = n.getElementsByTagName('*'),
an = [],
@@ -458,7 +458,7 @@ exports.pureInit = function(window, document) {
if(ni.nodeType === 1 && ni.className !== ''){
//when a className is found
cs = ni.className.split(' ');
- // for each className
+ // for each className
for(j = 0, jj=cs.length;j<jj;j++){
cj = cs[j];
// check if it is related to a context property
@@ -470,7 +470,7 @@ exports.pureInit = function(window, document) {
ni.className = ni.className.replace('@'+cspec.attr, '');
if(isNodeValue){
cspec.attr = false;
- }
+ }
}
an.push({n:ni, cspec:cspec});
}
@@ -478,7 +478,7 @@ exports.pureInit = function(window, document) {
}
}
return an;
-
+
function checkClass(c, tagName){
// read the class
var ca = c.match(selRx),
@@ -567,18 +567,18 @@ exports.pureInit = function(window, document) {
}
}
}
- // convert node to a string
+ // convert node to a string
var h = outerHTML(dom), pfns = [];
// IE adds an unremovable "selected, value" attribute
// hard replace while waiting for a better solution
h = h.replace(/<([^>]+)\s(value\=""|selected)\s?([^>]*)>/ig, "<$1 $3>");
-
+
// remove attribute prefix
h = h.split(attPfx).join('');
// slice the html string at "Sig"
var parts = h.split( Sig ), p;
- // for each slice add the return string of
+ // for each slice add the return string of
for(var i = 1; i < parts.length; i++){
p = parts[i];
// part is of the form "fn-number:..." as placed there by setsig.
@@ -598,7 +598,7 @@ exports.pureInit = function(window, document) {
}
//compile with the directive as argument
// run the template function on the context argument
- // return an HTML string
+ // return an HTML string
// should replace the template and return this
function render(ctxt, directive){
var fn = typeof directive === 'function' ? directive : plugins.compile( directive, false, this[0] );
@@ -611,7 +611,7 @@ exports.pureInit = function(window, document) {
// compile the template with autoRender
// run the template function on the context argument
- // return an HTML string
+ // return an HTML string
function autoRender(ctxt, directive){
var fn = plugins.compile( directive, ctxt, this[0] );
for(var i = 0, ii = this.length; i < ii; i++){
@@ -620,7 +620,7 @@ exports.pureInit = function(window, document) {
context = null;
return this;
}
-
+
function replaceWith(elm, html){
var tagName = elm.tagName, ne, pa, ep, parent = {TABLE:{}};
if((/TD|TR|TH/).test(tagName)){
@@ -631,8 +631,7 @@ exports.pureInit = function(window, document) {
}else{
pa = document.createElement('SPAN');
}
-
- var sys = require("sys");
+
ep = elm.parentNode;
// avoid IE mem leak
ep.insertBefore(pa, elm);
@@ -643,7 +642,7 @@ exports.pureInit = function(window, document) {
ep.insertBefore(ne, pa);
ep.removeChild(pa);
elm = ne;
-
+
pa = ne = ep = null;
return elm;
}
@@ -665,7 +664,7 @@ exports.pureInit = function(window, document) {
return $(n).cssSelect(sel);
};
}
- DOMAssistant.attach({
+ DOMAssistant.attach({
publicMethods : [ 'compile', 'render', 'autoRender'],
compile:function(directive, ctxt){ return $p(this).compile(directive, ctxt); },
render:function(ctxt, directive){ return $( $p(this).render(ctxt, directive) )[0]; },
@@ -704,8 +703,8 @@ exports.pureInit = function(window, document) {
};
}
Element.addMethods({
- compile:function(element, directive, ctxt){ return $p(element).compile(directive, ctxt); },
- render:function(element, ctxt, directive){ return $p(element).render(ctxt, directive); },
+ compile:function(element, directive, ctxt){ return $p(element).compile(directive, ctxt); },
+ render:function(element, ctxt, directive){ return $p(element).render(ctxt, directive); },
autoRender:function(element, ctxt, directive){ return $p(element).autoRender(ctxt, directive); }
});
},
@@ -717,7 +716,7 @@ exports.pureInit = function(window, document) {
}
},
sly:function(){
- if(typeof document.querySelector === 'undefined'){
+ if(typeof document.querySelector === 'undefined'){
$p.plugins.find = function(n, sel){
return Sly(sel, n);
};
@@ -727,15 +726,15 @@ exports.pureInit = function(window, document) {
// get lib specifics if available
(function(){
- var libkey =
- typeof dojo !== 'undefined' && 'dojo' ||
+ var libkey =
+ typeof dojo !== 'undefined' && 'dojo' ||
typeof DOMAssistant !== 'undefined' && 'domassistant' ||
- typeof jQuery !== 'undefined' && 'jquery' ||
+ typeof jQuery !== 'undefined' && 'jquery' ||
typeof MooTools !== 'undefined' && 'mootools' ||
- typeof Prototype !== 'undefined' && 'prototype' ||
+ typeof Prototype !== 'undefined' && 'prototype' ||
typeof window.Sizzle !== 'undefined' && 'sizzle' ||
typeof Sly !== 'undefined' && 'sly';
-
+
libkey && $p.libs[libkey]();
})();
return pure;
View
6 example/pure/run.js
@@ -1,7 +1,7 @@
var browser = require("../../lib/jsdom/browser/index");
var dom = new browser.browserAugmentation(require("../../lib/jsdom/level2/html").dom.level2.html);
var sax = require("./sax");
-var sys = require("sys");
+var util = require('util');
// TODO: change this example to use pluggable parser
@@ -83,14 +83,14 @@ doc.implementation = implementation;
doc.innerHTML = '<html><head></head><body><div class="who"></div></body></html>';
var window = {
- alert : function() { sys.puts(sys.inspect(arguments)); },
+ alert : function() { console.log(util.inspect(arguments)); },
document : doc
};
window.Sizzle = require("../sizzle/sizzle").sizzleInit(window, doc);
var $ = require("./pure").pureInit(window, doc);
$("div").autoRender({"who":"Hello Wrrrld"});
-sys.puts(doc.innerHTML);
+console.log(doc.innerHTML);
View
5 example/pure/sax-test.js
@@ -1,10 +1,11 @@
-var sys = require("sys"), sax = require("./sax");
+var util = require("util"),
+ sax = require("./sax");
parser = sax.parser(false);
sax.EVENTS.forEach(function (ev) {
- parser["on" + ev] = function() { sys.puts(sys.inspect(arguments)); };
+ parser["on" + ev] = function() { console.log(util.inspect(arguments)); };
});
parser.write("<span>Welcome,</span> to monkey land").close();
View
48 example/sizzle/run.js
@@ -1,7 +1,7 @@
var browser = require("../../lib/jsdom/browser");
var dom = browser.browserAugmentation(require("../../lib/jsdom/level2/core").dom.level2.core);
-var sys = require("sys");
+var util = require("util");
var doc = new dom.Document("html");
@@ -16,7 +16,7 @@ var sys = require("sys");
doc.createNotationNode("notation1","notation1File", null),
doc.createNotationNode("notation2",null, "notation2File")
);
-
+
// TODO: consider importing the master list of entities
// http://www.w3schools.com/tags/ref_symbols.asp
var entities = new dom.EntityNodeMap(
@@ -34,15 +34,15 @@ var sys = require("sys");
var acronym = doc.createElement("acronym");
acronym.setAttribute("dir", "ltr");
defaultAttributes.setNamedItem(acronym);
-
-
+
+
var doctype = new dom.DocumentType(doc, "html", entities, notations, defaultAttributes);
doc.doctype = doctype;
doc.implementation = implementation;
-
+
doc.appendChild(doc.createComment(" This is comment number 1."));
-
+
var html = doc.createElement("html");
var html = doc.appendChild(html);
var head = doc.createElement("head");
@@ -52,7 +52,7 @@ var sys = require("sys");
meta.setAttribute("http-equiv", "Content-Type");
meta.setAttribute("content", "text/html; charset=UTF-8");
head.appendChild(meta);
-
+
var title = doc.createElement("title")
title.appendChild(doc.createTextNode("hc_staff"));
var title = head.appendChild(title);
@@ -72,7 +72,7 @@ var sys = require("sys");
var genders = [];
var ids = [];
var salaries = [];
-
+
// create 5 employees
for (var i=0; i<5; i++)
{
@@ -83,31 +83,31 @@ var sys = require("sys");
var gender = doc.createElement("var");
var id = doc.createElement("em");
var salary = doc.createElement("sup");
-
- employee.appendChild(doc.createTextNode("\n"));
+
+ employee.appendChild(doc.createTextNode("\n"));
employee.appendChild(id);
- employee.appendChild(doc.createTextNode("\n"));
+ employee.appendChild(doc.createTextNode("\n"));
employee.appendChild(name);
- employee.appendChild(doc.createTextNode("\n"));
+ employee.appendChild(doc.createTextNode("\n"));
employee.appendChild(position);
- employee.appendChild(doc.createTextNode("\n"));
+ employee.appendChild(doc.createTextNode("\n"));
employee.appendChild(salary);
- employee.appendChild(doc.createTextNode("\n"));
+ employee.appendChild(doc.createTextNode("\n"));
employee.appendChild(gender);
- employee.appendChild(doc.createTextNode("\n"));
+ employee.appendChild(doc.createTextNode("\n"));
employee.appendChild(address);
- employee.appendChild(doc.createTextNode("\n"));
+ employee.appendChild(doc.createTextNode("\n"));
staff.appendChild(employee);
names.push(name);
employees.push(employee);
- addresses.push(address);
+ addresses.push(address);
genders.push(gender);
positions.push(position);
ids.push(id);
salaries.push(salary);
}
-
+
ids[0].appendChild(doc.createTextNode("EMP0001"));
salaries[0].appendChild(doc.createTextNode("56,000"));
addresses[0].setAttribute("title", "Yes");
@@ -123,7 +123,7 @@ var sys = require("sys");
addresses[1].appendChild(doc.createTextNode("β Dallas, γ\n 98554"));
names[1].appendChild(doc.createTextNode("Martha Raynolds"));
//names[1].appendChild(doc.createCDATASection("This is a CDATASection with EntityReference number 2 &amp;ent2;"));
- //names[1].appendChild(doc.createCDATASection("This is an adjacent CDATASection with a reference to a tab &amp;tab;"));
+ //names[1].appendChild(doc.createCDATASection("This is an adjacent CDATASection with a reference to a tab &amp;tab;"));
genders[1].appendChild(doc.createTextNode("Female"));
positions[1].appendChild(doc.createTextNode("Secretary"));
@@ -145,9 +145,9 @@ var sys = require("sys");
names[3].appendChild(doc.createTextNode("Jeny Oconnor"));
genders[3].appendChild(doc.createTextNode("Female"));
positions[3].appendChild(doc.createTextNode("Personal Director"));
-
+
ids[4].appendChild(doc.createTextNode("EMP0005"));
- salaries[4].appendChild(doc.createTextNode("90,000"));
+ salaries[4].appendChild(doc.createTextNode("90,000"));
addresses[4].setAttribute("title", "No");
addresses[4].id = "theid";
addresses[4].appendChild(doc.createTextNode("1821 Nordic. Road, Irving Texas 98558"));
@@ -156,11 +156,11 @@ var sys = require("sys");
positions[4].appendChild(doc.createTextNode("Computer Specialist"));
//doc.appendChild(doc.createProcessingInstruction("TEST-STYLE", "PIDATA"));
-
+
doc.normalize();
-
+
var sizzleSandbox = {};
var sizzle = require("./sizzle").sizzleInit(sizzleSandbox, doc);
-sys.puts(sys.inspect(sizzle('.classy,p acronym#theid').length));
+console.log(util.inspect(sizzle('.classy,p acronym#theid').length));
View
2  lib/jsdom/browser/domtohtml.js
@@ -48,8 +48,6 @@ exports.stringifyElement = function stringifyElement(element) {
i,
attribute = null;
- //sys.puts('Checking Attributes: ' + element._attributes.length);
- //sys.puts(sys.inspect(element));
if (element.attributes.length) {
ret.start += " ";
for (i = 0; i<element.attributes.length; i++) {
View
17 lib/jsdom/browser/htmltodom.js
@@ -99,15 +99,14 @@ function HtmlToDom(parser) {
} else {
this.appendHtmlToElement = function(){
- var sys = require('sys');
- sys.puts('');
- sys.puts('###########################################################');
- sys.puts('# WARNING: No HTML parser could be found.');
- sys.puts('# Element.innerHTML setter support has been disabled');
- sys.puts('# Element.innerHTML getter support will still function');
- sys.puts('# Download: http://github.com/tautologistics/node-htmlparser');
- sys.puts('###########################################################');
- sys.puts('');
+ console.log('');
+ console.log('###########################################################');
+ console.log('# WARNING: No HTML parser could be found.');
+ console.log('# Element.innerHTML setter support has been disabled');
+ console.log('# Element.innerHTML getter support will still function');
+ console.log('# Download: http://github.com/tautologistics/node-htmlparser');
+ console.log('###########################################################');
+ console.log('');
};
}
View
11 lib/jsdom/browser/index.js
@@ -1,5 +1,4 @@
-var sys = require('sys'),
- http = require('http'),
+var http = require('http'),
URL = require('url'),
HtmlToDom = require('./htmltodom').HtmlToDom,
domToHtml = require('./domtohtml').domToHtml,
@@ -387,12 +386,12 @@ var browserAugmentation = exports.browserAugmentation = function(dom, options) {
dom.Element.prototype.__defineGetter__('innerHTML', function() {
- if (this._tagName === 'script' &&
- this._attributes.length > 0 &&
- typeof(this._attributes._nodes.type) !== "undefined" &&
+ if (this._tagName === 'script' &&
+ this._attributes.length > 0 &&
+ typeof(this._attributes._nodes.type) !== "undefined" &&
this._attributes._nodes.type._nodeValue.indexOf("text") === 0) {
return domToHtml(this._childNodes, true, true);
- }
+ }
return domToHtml(this._childNodes, true);
});
View
5 lib/jsdom/level2/events.js
@@ -4,8 +4,7 @@
*
*/
var core = require("./core").dom.level2.core,
- utils = require("../utils"),
- sys = require("sys");
+ utils = require("../utils");
// modify cloned instance for more info check: https://github.com/tmpvar/jsdom/issues/325
core = Object.create(core);
@@ -180,7 +179,7 @@ events.EventTarget.getListeners = function getListeners(target, type, capturing)
if (traditionalHandler) {
var implementation = (target._ownerDocument ? target._ownerDocument.implementation
: target.document.implementation);
-
+
if (implementation.hasFeature('ProcessExternalResources', 'script')) {
listeners.push(traditionalHandler);
}
View
3  test/level2/core/files/hc_staff.xml.js
@@ -1,5 +1,4 @@
-var sys = require("sys"),
- dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
+var dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
exports.hc_staff = function() {
View
3  test/level2/core/files/staff.xml.js
@@ -1,5 +1,4 @@
-var sys = require("sys"),
- dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
+var dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
exports.staff = function() {
View
3  test/level2/core/files/staff2.xml.js
@@ -1,5 +1,4 @@
-var sys = require("sys"),
- dom = require(__dirname + "/../../../../lib/jsdom/level2/core").dom.level2.core;
+var dom = require(__dirname + "/../../../../lib/jsdom/level2/core").dom.level2.core;
exports.staff2 = function() {
View
3  test/level2/core/files/staffNS.xml.js
@@ -1,5 +1,4 @@
-var sys = require("sys"),
- dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
+var dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
exports.staffNS = function() {
View
3  test/level2/events/files/hc_staff.xml.js
@@ -1,5 +1,4 @@
-var sys = require("sys"),
- dom = require("../../../../lib/jsdom/level2/core").dom.level2.core,
+var dom = require("../../../../lib/jsdom/level2/core").dom.level2.core,
createWindow = require("../../../../lib/jsdom/browser/index").createWindow;
exports.hc_staff = function() {
View
3  test/level3/core/files/hc_nodtdstaff.xml.js
@@ -1,5 +1,4 @@
-var sys = require("sys"),
- dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
+var dom = require("../../../../lib/jsdom/level2/core").dom.level2.core;
exports.hc_staff = function() {
View
3  test/level3/core/files/hc_staff.xml.js
@@ -1,5 +1,4 @@
-var sys = require("sys"),
- dom = require("../../../../lib/jsdom/level3/core").dom.level3.core;
+var dom = require("../../../../lib/jsdom/level3/core").dom.level3.core;
exports.hc_staff = function() {

1 comment on commit 1efb7c8

@quangv

+1 very nice :)

Please sign in to comment.
Something went wrong with that request. Please try again.