Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab

This commit is contained in:
James Graham
2015-03-27 09:18:12 +00:00
parent 1a81b18b9f
commit 2c9faf5363
91915 changed files with 5979820 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
document.addEventListener("DOMContentLoaded", function() {
// Mare sure we're styling with CSS
document.execCommand("styleWithCss", true, null);
});
function insertText(selector, newText) {
var selection = window.getSelection(),
insertionPoint = document.querySelector(selector),
range = document.createRange();
range.selectNode(insertionPoint);
selection.removeAllRanges();
selection.addRange(range);
document.execCommand("insertText", true, newText);
}
function duplicate(selector) {
var selection = window.getSelection(),
insertionPoint = document.querySelector(selector),
range = document.createRange();
range.selectNode(insertionPoint);
selection.removeAllRanges();
selection.addRange(range);
document.execCommand("copy", true, null);
selection.removeAllRanges();
document.execCommand("paste", true, null);
}