forked from timdown/rangy
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate testutils & highlighter test to typescript
- Loading branch information
Showing
3 changed files
with
47 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,19 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | ||
<head> | ||
<title>Rangy - Highlighter Tests</title> | ||
|
||
<script type="text/javascript" src="../external/log4javascript.js"></script> | ||
<script type="text/javascript" src="../external/jshashtable.js"></script> | ||
<script type="text/javascript"> | ||
//var appender = new log4javascript.InPageAppender(); | ||
var appender = new log4javascript.BrowserConsoleAppender(); | ||
//log4javascript.getRootLogger().addAppender(appender); | ||
var log = log4javascript.getRootLogger(); | ||
log4javascript.setShowStackTraces(true); | ||
//log4javascript.setEnabled(false); | ||
</script> | ||
<script type="text/javascript" src="xntest.js"></script> | ||
<script type="text/javascript" src="testutils.js"></script> | ||
<script type="text/javascript"> | ||
xn.test.enableStackTraces = true; | ||
</script> | ||
|
||
<script type="text/javascript" src="../src/core/core.js"></script> | ||
<script type="text/javascript" src="../src/core/dom.js"></script> | ||
<script type="text/javascript" src="../src/core/domrange.js"></script> | ||
<script type="text/javascript" src="../src/core/wrappedrange.js"></script> | ||
<script type="text/javascript" src="../src/core/wrappedselection.js"></script> | ||
<script type="text/javascript" src="../src/modules/rangy-classapplier.js"></script> | ||
<script type="text/javascript" src="../src/modules/rangy-highlighter.js"></script> | ||
<script type="text/javascript" src="highlightertests.js"></script> | ||
<link rel="stylesheet" type="text/css" href="tests.css"/> | ||
</head> | ||
<body> | ||
<div id="test"></div> | ||
<div id="messages"></div> | ||
</body> | ||
|
||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>QUnit Example</title> | ||
<!-- load rangy2 here in `head` to verify that rangy2 can init without need dom ready --> | ||
<script src="../../dist/core/bundles/index.umd.min.js"></script> | ||
<script src="../../dist/highlighter/bundles/index.umd.min.js"></script> | ||
<script src="../../node_modules/qunit/qunit/qunit.js"></script> | ||
<link rel="stylesheet" href="../../node_modules/qunit/qunit/qunit.css"> | ||
<script src="../qunit-ex.js"></script> | ||
</head> | ||
<body> | ||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
<script src="index.test.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters