зеркало из https://github.com/mozilla/gecko-dev.git
remove javascript warnings from table testcases bug 62965 r=karnaze
This commit is contained in:
Родитель
c04d324bf1
Коммит
69d696b0ae
|
@ -3,12 +3,12 @@
|
|||
<SCRIPT>
|
||||
<!--
|
||||
function run(){
|
||||
tbl = document.body.appendChild(document.createElement("TABLE"));
|
||||
var tbl = document.body.appendChild(document.createElement("TABLE"));
|
||||
//alert("Appending TR to TABLE");
|
||||
tr = tbl.appendChild(document.createElement("TR"));
|
||||
tmp_td = document.createElement("TD")
|
||||
td1 = tr.appendChild(tmp_td); // <-- Causes Crash
|
||||
td1_text = td1.appendChild(document.createTextNode("testing"));
|
||||
var tr = tbl.appendChild(document.createElement("TR"));
|
||||
var tmp_td = document.createElement("TD")
|
||||
var td1 = tr.appendChild(tmp_td); // <-- Causes Crash
|
||||
var td1_text = td1.appendChild(document.createTextNode("testing"));
|
||||
}
|
||||
//-->
|
||||
</SCRIPT>
|
||||
|
|
|
@ -18,6 +18,7 @@ function triggerURL(url)
|
|||
{
|
||||
InstallTrigger.StartSoftwareUpdate(url);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function runAll()
|
||||
|
|
|
@ -36,9 +36,9 @@
|
|||
<script type="text/javascript">
|
||||
|
||||
|
||||
table = document.getElementById('test2');
|
||||
row = table.insertRow(0);
|
||||
cell = row.insertCell(0);
|
||||
var table = document.getElementById('test2');
|
||||
var row = table.insertRow(0);
|
||||
var cell = row.insertCell(0);
|
||||
cell.setAttribute('class', 'someClass');
|
||||
cell.appendChild(document.createTextNode('padding?'));
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ function createTable()
|
|||
// THead creation block
|
||||
var oTHead = oTable.createTHead();
|
||||
var oRow = oTHead.insertRow(0);
|
||||
for(col=0;col<8;col++)
|
||||
for( var col=0;col<8;col++)
|
||||
{
|
||||
var oCell = oRow.insertCell(col);
|
||||
var cellValue = document.createTextNode("h" + col);
|
||||
|
@ -23,20 +23,20 @@ function createTable()
|
|||
|
||||
// TFoot creation block
|
||||
var oTFoot = oTable.createTFoot();
|
||||
var oRow = oTFoot.insertRow(0); // create table footer row
|
||||
oRow = oTFoot.insertRow(0); // create table footer row
|
||||
for(col=0;col<8;col++)
|
||||
{
|
||||
var oCell = oRow.insertCell(col);
|
||||
var cellValue = document.createTextNode("f" + col);
|
||||
oCell = oRow.insertCell(col);
|
||||
cellValue = document.createTextNode("f" + col);
|
||||
oCell.appendChild(cellValue);
|
||||
}
|
||||
|
||||
for(row=0;row<1;row++) // ask for just 1 row
|
||||
for(var row=0;row<1;row++) // ask for just 1 row
|
||||
{
|
||||
var oRow = oTable.tBodies[0].insertRow(row);
|
||||
oRow = oTable.tBodies[0].insertRow(row);
|
||||
for(col=0;col<8;col++)
|
||||
{
|
||||
var oCell = oRow.insertCell(col);
|
||||
oCell = oRow.insertCell(col);
|
||||
var newValue2 = document.createTextNode("r" + row + "c"
|
||||
+ col);
|
||||
oCell.appendChild(newValue2);
|
||||
|
|
|
@ -20,7 +20,7 @@ tr {
|
|||
|
||||
|
||||
|
||||
mytable = document.getElementById("mytable");
|
||||
var mytable = document.getElementById("mytable");
|
||||
|
||||
dump("before\n");
|
||||
var newrow = mytable.insertRow(0);
|
||||
|
|
|
@ -22,7 +22,7 @@ function windowLoad()
|
|||
var newRow = newTable.insertRow(y);
|
||||
|
||||
|
||||
for(x=0;x<1;x++)
|
||||
for( var x=0;x<1;x++)
|
||||
|
||||
{
|
||||
var newCell = newRow.insertCell(x);
|
||||
|
|
|
@ -13,7 +13,7 @@ table { border-collapse: collapse; }
|
|||
<script type="text/javascript">
|
||||
|
||||
|
||||
mytable = document.getElementById("mytable");
|
||||
var mytable = document.getElementById("mytable");
|
||||
|
||||
dump("before\n");
|
||||
var newrow = mytable.insertRow(0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче