|
|
@ -46,14 +46,15 @@ define([
|
|
|
|
var success = cloned.outerHTML === target.outerHTML;
|
|
|
|
var success = cloned.outerHTML === target.outerHTML;
|
|
|
|
|
|
|
|
|
|
|
|
if (!success) {
|
|
|
|
if (!success) {
|
|
|
|
|
|
|
|
var op = TextPatcher.diff(target.outerHTML, cloned.outerHTML);
|
|
|
|
window.DEBUG = {
|
|
|
|
window.DEBUG = {
|
|
|
|
error: "Expected equality between A and B",
|
|
|
|
error: "Expected equality between A and B",
|
|
|
|
A: target.outerHTML,
|
|
|
|
A: target.outerHTML,
|
|
|
|
B: cloned.outerHTML,
|
|
|
|
B: cloned.outerHTML,
|
|
|
|
target: target,
|
|
|
|
diff: op
|
|
|
|
diff: TextPatcher.diff(target.outerHTML, cloned.outerHTML)
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log(JSON.stringify(window.DEBUG, null, 2));
|
|
|
|
console.log(JSON.stringify(window.DEBUG, null, 2));
|
|
|
|
|
|
|
|
TextPatcher.log(op);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return success;
|
|
|
|
return success;
|
|
|
@ -62,6 +63,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
[ '#target',
|
|
|
|
[ '#target',
|
|
|
|
'#widget',
|
|
|
|
'#widget',
|
|
|
|
|
|
|
|
'#quot',
|
|
|
|
].forEach(function (sel) {
|
|
|
|
].forEach(function (sel) {
|
|
|
|
roundTrip($(sel)[0]);
|
|
|
|
roundTrip($(sel)[0]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|