Skip to content

Commit

Permalink
Update manual tests for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
samclarke committed Nov 6, 2017
1 parent 07fe011 commit cb02a81
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
13 changes: 8 additions & 5 deletions tests/manual/debug/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@

<!--script src="../../libs/jquery-1.11.1.js"></script-->
<script src="/webpack-build/main.js"></script>
<script src="../../../src/plugins/bbcode.js"></script>
<script src="../../../src/plugins/xhtml.js"></script>
<script src="../../../src/formats/bbcode.js"></script>
<script src="../../../src/formats/xhtml.js"></script>
<script src="../../../src/plugins/undo.js"></script>
<script src="../../../src/plugins/autoyoutube.js"></script>
<script src="../../../src/plugins/format.js"></script>
<script src="../../../src/plugins/plaintext.js"></script>
<script src="../../../src/plugins/pastefilter.js"></script>
<script src="../../../src/plugins/dragdrop.js"></script>
<script src="../../../src/icons/monocons.js"></script>
<script src="../../../src/icons/material.js"></script>

<link rel="stylesheet"
href="http://fonts.googleapis.com/css?family=Open+Sans:400,500,700">
Expand All @@ -36,11 +40,10 @@ <h2>Constructor Options</h2>

<textarea>{
rtl: null,
plugins: 'bbcode',
format: 'bbcode',
autofocus: true,
enablePasteFiltering: true,
emoticonsRoot: '../../../',
style: '../../../src/jquery.sceditor.default.css'
style: '../../../src/themes/content/default.css'
}</textarea>
<input type="submit" value="Create Editor" />
</div>
Expand Down
10 changes: 5 additions & 5 deletions tests/manual/events/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(function () {
autofocusEnd: true,
enablePasteFiltering: true,
emoticonsRoot: '../../../',
style: '../../../src/jquery.sceditor.default.css'
style: '../../../src/themes/content/default.css'
});

this.editor = $('#testarea').sceditor('instance');
Expand Down Expand Up @@ -174,8 +174,8 @@ runner.test({
instructions: 'Follow the instructions inside the WYSIWYG editor.',
setup: function () {
this.editor.val(
'<p style="background: #ecf0f1">Click anywhere here.</p>' +
'<p style="background: #84C692">Then click here.</p>'
'<p id="a" style="background: #ecf0f1">Click anywhere here.</p>' +
'<p id="b" style="background: #84C692">Then click here.</p>'
);
},
teardown: function () {
Expand All @@ -185,8 +185,8 @@ runner.test({
}, function (done) {
var editor = this.editor;
var body = editor.getBody();
var firstNode = body.firstChild;
var lastNode = body.lastChild;
var firstNode = body.ownerDocument.getElementById('a');
var lastNode = body.ownerDocument.getElementById('b');
var foundFirst = false;

this.handler = function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/manual/memory/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var testMemoryLeaks = function (pos) {
autofocusEnd: true,
enablePasteFiltering: true,
emoticonsRoot: '../../../',
style: '../../../src/jquery.sceditor.default.css'
style: '../../../src/themes/content/default.css'
});

$('#testarea').sceditor('instance').destroy();
Expand Down
2 changes: 1 addition & 1 deletion tests/manual/valuechanged/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $(function () {
autofocusEnd: true,
enablePasteFiltering: true,
emoticonsRoot: '../../../',
style: '../../../src/jquery.sceditor.default.css'
style: '../../../src/themes/content/default.css'
});


Expand Down

0 comments on commit cb02a81

Please sign in to comment.