detab + dedos for js files (no functional changes)
git-svn-id: http://google-refine.googlecode.com/svn/trunk@592 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
3f1e6180c9
commit
18075eb3ee
@ -1,34 +1,34 @@
|
|||||||
var DOM = {};
|
var DOM = {};
|
||||||
|
|
||||||
DOM.bind = function(elmt) {
|
DOM.bind = function(elmt) {
|
||||||
var map = {};
|
var map = {};
|
||||||
|
|
||||||
for (var i = 0; i < elmt.length; i++) {
|
for (var i = 0; i < elmt.length; i++) {
|
||||||
DOM._bindDOMElement(elmt[i], map);
|
DOM._bindDOMElement(elmt[i], map);
|
||||||
}
|
}
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
};
|
};
|
||||||
|
|
||||||
DOM._bindDOMElement = function(elmt, map) {
|
DOM._bindDOMElement = function(elmt, map) {
|
||||||
var bind = elmt.getAttribute("bind");
|
var bind = elmt.getAttribute("bind");
|
||||||
if (bind !== null && bind.length > 0) {
|
if (bind !== null && bind.length > 0) {
|
||||||
map[bind] = $(elmt);
|
map[bind] = $(elmt);
|
||||||
elmt.removeAttribute("bind");
|
elmt.removeAttribute("bind");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (elmt.hasChildNodes()) {
|
if (elmt.hasChildNodes()) {
|
||||||
DOM._bindDOMChildren(elmt, map);
|
DOM._bindDOMChildren(elmt, map);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
DOM._bindDOMChildren = function(elmt, map) {
|
DOM._bindDOMChildren = function(elmt, map) {
|
||||||
var node = elmt.firstChild;
|
var node = elmt.firstChild;
|
||||||
while (node !== null) {
|
while (node !== null) {
|
||||||
var node2 = node.nextSibling;
|
var node2 = node.nextSibling;
|
||||||
if (node.nodeType == 1) {
|
if (node.nodeType == 1) {
|
||||||
DOM._bindDOMElement(node, map);
|
DOM._bindDOMElement(node, map);
|
||||||
}
|
}
|
||||||
node = node2;
|
node = node2;
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -1,25 +1,25 @@
|
|||||||
var test_basicFunctionality = new function() {//try cutting 'new' at some point
|
var test_basicFunctionality = new function() {//try cutting 'new' at some point
|
||||||
this.test_openProject = [
|
this.test_openProject = [
|
||||||
{ params: { "link": "Food" }, method: "click" },
|
{ params: { "link": "Food" }, method: "click" },
|
||||||
{ params: {"timeout": "20000"}, method: "waits.forPageLoad"}
|
{ params: {"timeout": "20000"}, method: "waits.forPageLoad"}
|
||||||
//assert the project is open
|
//assert the project is open
|
||||||
];
|
];
|
||||||
var column_name = 'Shrt_Desc';
|
var column_name = 'Shrt_Desc';
|
||||||
this.test_filterColumn = [
|
this.test_filterColumn = [
|
||||||
// {method: "click", params: { jquery: '(".column-header-layout tr:contains( '+ column_name + ' ) .column-header-menu")[0]' } },
|
// {method: "click", params: { jquery: '(".column-header-layout tr:contains( '+ column_name + ' ) .column-header-menu")[0]' } },
|
||||||
{method: "click", params: { jquery: '(".column-header-layout tr:contains(\'Shrt_Desc\') .column-header-menu")[0]'} },
|
{method: "click", params: { jquery: '(".column-header-layout tr:contains(\'Shrt_Desc\') .column-header-menu")[0]'} },
|
||||||
{method: "mouseOver", params: { jquery: '("td:contains(\'Facet\')")[0]'} },
|
{method: "mouseOver", params: { jquery: '("td:contains(\'Facet\')")[0]'} },
|
||||||
{method: "click", params: { jquery: '(".menu-item:contains(\'Custom Text Facet\')")[0]'} },
|
{method: "click", params: { jquery: '(".menu-item:contains(\'Custom Text Facet\')")[0]'} },
|
||||||
{method: "type", params: { jquery: '(".expression-preview-code")[0]', text: "value.split(',')[0]"} },
|
{method: "type", params: { jquery: '(".expression-preview-code")[0]', text: "value.split(',')[0]"} },
|
||||||
{method: "waits.forElement", params: { jquery: '("td:contains(\'value.split\')")[0]'} },
|
{method: "waits.forElement", params: { jquery: '("td:contains(\'value.split\')")[0]'} },
|
||||||
{method: "click", params: { jquery: '("button:contains(\'OK\')")[0]'} },
|
{method: "click", params: { jquery: '("button:contains(\'OK\')")[0]'} },
|
||||||
{method: "waits.forElement", params: { jquery: '("a:contains(\'Count\')")[0]'} },
|
{method: "waits.forElement", params: { jquery: '("a:contains(\'Count\')")[0]'} },
|
||||||
{method: "click", params: { jquery: '("a:contains(\'Count\')")[0]'} }
|
{method: "click", params: { jquery: '("a:contains(\'Count\')")[0]'} }
|
||||||
// assert_expected_top_value(client, 'BEEF')
|
// assert_expected_top_value(client, 'BEEF')
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// {method: "waits.forElement", params: { jquery: '("body[ajax_in_progress=\'false\']")[0]'} }, //wants to be a method
|
// {method: "waits.forElement", params: { jquery: '("body[ajax_in_progress=\'false\']")[0]'} }, //wants to be a method
|
Loading…
Reference in New Issue
Block a user