Skip to content
Permalink
Browse files
CB-6957 Style improvements on Manual tests
Usage of info, which is wired a css class, aimed to only show results.
Reorganization of titles and tables.
Just organization of labes, and html elements.
Requires the changes on this PR:
apache/cordova-plugin-test-framework#3

To get a better look.
  • Loading branch information
martincgg committed Jul 17, 2014
1 parent d54ebfe commit f6079cdb6a718ba03a6a5246a5fd0cd423dd2378
Showing 1 changed file with 38 additions and 40 deletions.
@@ -378,154 +378,153 @@ exports.defineManualTests = function (contentEl, createActionButton) {
// Battery Elements
var batteryElements =
[{
id : "tableName",
content : "Battery",
tag : "h2",
position : {
row : 0,
cell : 0
}
}, {
id : "statusTag",
content : "Status:",
tag : "div",
position : {
row : 1,
row : 0,
cell : 0
}
}, {
id : "statusValue",
content : "",
tag : "div",
position : {
row : 1,
row : 0,
cell : 1
}
}, {
id : "levelTag",
content : "Level:",
tag : "div",
position : {
row : 2,
row : 1,
cell : 0
}
}, {
id : "levelValue",
content : "",
tag : "div",
position : {
row : 2,
row : 1,
cell : 1
}
}, {
id : "pluggedTag",
content : "Plugged:",
tag : "div",
position : {
row : 3,
row : 2,
cell : 0
}
}, {
id : "pluggedValue",
content : "",
tag : "div",
position : {
row : 3,
row : 2,
cell : 1
}
}, {
id : "lowTag",
content : "Low:",
tag : "div",
position : {
row : 4,
row : 3,
cell : 0
}
}, {
id : "lowValue",
content : "",
tag : "div",
position : {
row : 4,
row : 3,
cell : 1
}
}, {
id : "criticalTag",
content : "Critical:",
tag : "div",
position : {
row : 5,
row : 4,
cell : 0
}
}, {
id : "criticalValue",
content : "",
tag : "div",
position : {
row : 5,
row : 4,
cell : 1
}
}, {
id : "actionTag",
content : "Actions",
tag : "h2",
position : {
row : 6,
cell : 0
}
}, {
}
],
batteryActions = [{
id : "addBS",
content : "",
tag : "div",
position : {
row : 7,
row : 0,
cell : 0
}
}, {
id : "remBs",
content : "",
tag : "div",
position : {
row : 7,
cell : 1
row : 1,
cell : 0
}
}, {
id : "addBl",
content : "",
tag : "div",
position : {
row : 8,
row : 2,
cell : 0
}
}, {
id : "remBl",
content : "",
tag : "div",
position : {
row : 8,
cell : 1
row : 3,
cell : 0
}
}, {
id : "addBc",
content : "",
tag : "div",
position : {
row : 9,
row : 4,
cell : 0
}
}, {
id : "remBc",
content : "",
tag : "div",
position : {
row : 9,
cell : 1
row : 5,
cell : 0
}
}
];
}];

//Title audio results
var div = document.createElement('h2');
div.appendChild(document.createTextNode('Battery Status'));
div.setAttribute("align", "center");
contentEl.appendChild(div);

batteryTable = generateTable('batteryContent', 10, 3, batteryElements);
batteryTable = generateTable('info', 5, 3, batteryElements);
contentEl.appendChild(batteryTable);

div = document.createElement('h2');
div.appendChild(document.createTextNode('Actions'));
div.setAttribute("align", "center");
contentEl.appendChild(div);

batteryActionsTable = generateTable('batteryContent', 6, 2, batteryActions);
contentEl.appendChild(batteryActionsTable);

createActionButton('Add "batterystatus" listener', function () {
addBattery();
@@ -545,5 +544,4 @@ exports.defineManualTests = function (contentEl, createActionButton) {
createActionButton('Remove "batterycritical" listener', function () {
removeCritical();
}, 'remBc');

};

0 comments on commit f6079cd

Please sign in to comment.