Somehow the <BR> got in the wrong place...
Error: doh._AssertFailure: assertEqual() failed:
expected
testingCopyAndPastetestingCopyAndPastetestingCopyAndPaste<br/>
but got
testingCopyAndPaste<br/>testingCopyAndPastetestingCopyAndPaste
with hint:
get('value')
ERROR IN:
function(){
var d = new doh.Deferred();
var br = dijit.byId("br");
br.set("value", "");
br.focus();
doh.robot.mouseMoveAt(br.iframe, 500);
doh.robot.mouseClick({left:true}, 500);
doh.robot.keyPress(dojo.keys.BACKSPACE, 500, {});
doh.robot.typeKeys("testingCopyAndPaste", 500);
doh.robot.keyPress("a", 500, metaKey); // select all
doh.robot.keyPress("c", 500, metaKey); // copy
doh.robot.keyPress("v", 500, metaKey); // paste
doh.robot.keyPress("v", 500, metaKey); // paste
doh.robot.keyPress("v", 500, metaKey); // paste
doh.robot.keyPress(dojo.keys.ENTER, 500, {shift: false});
doh.robot.sequence(d.getTestCallback(function(){
// get('value') should call the post-filter which recombines the separate <p> nodes into bigger
// paragraphs.
var value = br.get('value');
value = value.replace(/ /g, "");
value = value.replace(/\xA0/g, "");
if(dojo.isWebKit && !dojo.isMac){
// Work around webkit bug:
// http://code.google.com/p/chromium/issues/detail?id=106551
// Should hopefully be fixed in Chrome 19.
value = value.replace(/\n/g, "");
value = value.replace(/\r\f/g, "");
}
// Safari may end with a trailing/extra br, so we need to remove it.
if(/<br\/><br\/>$/.test(value)){
value = value.substring(0, value.length - 5);
}
doh.is('testingCopyAndPastetestingCopyAndPastetestingCopyAndPaste<br/>',
value,
"get('value')");
}), 1000);
return d;
}
FAILED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::blockNodeForEnter=BR::copy and paste 7184 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::blockNodeForEnter=BR::copy and paste split 9182 ms
------------------------------------------------------------
GROUP "Split tests" has 9 tests to run
Error: doh._AssertFailure: assertTrue('false') failed with hint:
start
ERROR IN:
function(){
var d = new doh.Deferred();
// The initial input was a div with a line of text with a bold tag in the middle.
// we want to focus on the bold and enter there, splitting it.
var editor = dijit.byId("div2");
dojo.window.scrollIntoView(editor.iframe);
var node = dojo.byId("boldLine0", editor.document);
doh.robot.mouseMoveAt(editor.iframe, 500);
doh.robot.mouseClick({left:true}, 500);
doh.robot.sequence(function(){
editor._sCall("selectElementChildren", [node]);
}, 500);
//Keyboard kill the selection and shift position between i and s.
if(!dojo.isMoz || dojo.isMac){doh.robot.keyPress(dojo.keys.RIGHT_ARROW, 100, {}); }
doh.robot.keyPress(dojo.keys.LEFT_ARROW, 100, {});
doh.robot.keyPress(dojo.keys.ENTER, 500);
doh.robot.sequence(d.getTestCallback(function(){
// Do tests here.
var val = editor.get("value");
// Check that it split the is into two and that the bold and div were properly split.
doh.t(val.indexOf("It <b id=\"boldLine0\">i</b></div>") > 0, "start");
doh.t(val.indexOf("<div><b>s</b>") > 0, "end");
}), 500);
return d;
}
FAILED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::Test div line split 2915 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::Test div line split style clone 2908 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::Test div line split font clone 2875 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::copy and paste DIV 7187 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::copy and paste DIV split 9186 ms
Error: doh._AssertFailure: assertTrue('false') failed with hint:
start
ERROR IN:
function(){
var d = new doh.Deferred();
// The initial input was a div with a line of text with a bold tag in the middle.
// we want to focus on the bold and enter there, splitting it.
var editor = dijit.byId("p2");
dojo.window.scrollIntoView(editor.iframe);
var node = dojo.byId("boldLine2", editor.document);
doh.robot.mouseMoveAt(editor.iframe, 500);
doh.robot.mouseClick({left:true}, 500);
doh.robot.sequence(function(){
editor._sCall("selectElementChildren", [node]);
}, 500);
//Keyboard kill the selection and shift position between i and s.
if(!dojo.isMoz || dojo.isMac){doh.robot.keyPress(dojo.keys.RIGHT_ARROW, 100, {}); }
doh.robot.keyPress(dojo.keys.LEFT_ARROW, 100, {});
doh.robot.keyPress(dojo.keys.ENTER, 500);
doh.robot.sequence(d.getTestCallback(function(){
// Do tests here.
var val = editor.get("value");
// Check that it split the is into two and that the bold and div were properly split.
doh.t(val.indexOf("It <b id=\"boldLine2\">i</b></p>") > 0, "start");
doh.t(val.indexOf("<p><b>s</b>") > 0, "end");
}), 500);
return d;
}
FAILED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::Test p line split 2955 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::shift enter to replace all content in p 1523 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::copy and paste P 7186 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html::Split tests::copy and paste P split 9160 ms
PASSED test: ../../dijit/tests/editor/robot/EnterKeyHandling.html 71402 ms
Bulk update of IE10 tickets to 1.8.2, as per meeting. Backports to 1.4 will be handled in a separate ticket. If this ticket just requires a test update, it can be rescheduled for milestone 1.9, and checked into trunk only.