Permalink
Browse files

Fix the commandLine/5878 test

Patch by Florent FAYOLLE.
  • Loading branch information...
1 parent f8ca900 commit a48233e66ed5a01e35a69714482147ce6aecd8ab @simonlindholm committed Nov 4, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 tests/content/commandLine/5878/issue5878.js
@@ -24,8 +24,7 @@ function runTest()
{
contextMenuTarget = row;
FBTest.compare(expectedMyScriptURL, url,
- "The alias should redirect to " + expectedMyScriptURL +
- ", not to: " + url);
+ "The alias should redirect to " + expectedMyScriptURL);
}
});
// test context menu:
@@ -43,7 +42,7 @@ function runTest()
FBTest.executeContextMenuCommand(contextMenuTarget, "fbCopyLocation", function()
{
FBTest.compare(FBTest.getClipboardText(), expectedMyScriptURL,
- "The copied location should be: "+expectedMyScriptURL);
+ "The copied location should be: " + expectedMyScriptURL);
callback();
});
});
@@ -55,7 +54,7 @@ function runTest()
{
var expectedURL = basePath5878 + "myOtherScript.js";
FBTest.compare(expectedURL, url,
- "The alias should redirect to " + basePath5878);
+ "The alias should redirect to " + expectedURL);
}
});
tasks.push(executeIncludeCommand, 'include(null, "myScript");');
@@ -88,7 +87,7 @@ function checkTableContent(callback, expectedAliasName, checkFunction)
{
var row = FW.FBL.getAncestorByTagName(aliasNameCell, "tr");
var aliasValueCell = row.querySelector(".url");
- checkFunction(table, row, aliasNameCell.textContent, aliasValueCell.textContent);
+ checkFunction(table, row, aliasNameCell.dataset.aliasname, aliasValueCell.href);
}
callback();
});

0 comments on commit a48233e

Please sign in to comment.