Skip to content

Commit

Permalink
Merge pull request 'fix/unit-tests' (#496) from fix/unit-tests into r…
Browse files Browse the repository at this point in the history
…elease/v8.3.0
  • Loading branch information
KirillovIlya committed Jan 15, 2025
2 parents 32853a2 + ea7c600 commit d9001d1
Show file tree
Hide file tree
Showing 9 changed files with 458 additions and 317 deletions.
4 changes: 3 additions & 1 deletion tests/runAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const allTests = [
'slide/shortcuts/shortcuts.html',
'word/shortcuts/shortcuts.html',

'oform/xml/oformXml.html'
// related ooxml tests
'oform/xml/oformXml.html',
'word/custom-xml/custom-xml-ooxml.html',
];

const maxTestsAtOnce = require('events').defaultMaxListeners;
Expand Down
317 changes: 317 additions & 0 deletions tests/word/custom-xml/custom-xml-common.js

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions tests/word/custom-xml/custom-xml-ooxml.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Document calculation tests</title>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/qunit/2.16.0/qunit.css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/qunit/2.16.0/qunit.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xregexp/3.2.0/xregexp-all.min.js"></script>

<script type="text/javascript" src="../../../develop/sdkjs/word/scripts.js"></script>
<script type="text/javascript">
window.sdk_scripts.forEach(function(item){
document.write('<script type="text/javascript" src="' + item + '"><\/script>');
});
</script>

<script type="text/javascript" src="../common/common.js"></script>
<script type="text/javascript" src="../common/editor.js"></script>
<script type="text/javascript" src="../common/document.js"></script>
<script type="text/javascript" src="../common/measurer.js"></script>

<script type="text/javascript" src="custom-xml-common.js"></script>
<script type="text/javascript" src="custom-xml-ooxml.js"></script>
</head>
<body>
<h1 id="qunit-header">Test forms</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>
70 changes: 70 additions & 0 deletions tests/word/custom-xml/custom-xml-ooxml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/word/custom-xml/custom-xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<script type="text/javascript" src="../common/document.js"></script>
<script type="text/javascript" src="../common/measurer.js"></script>

<script type="text/javascript" src="custom-xml-common.js"></script>
<script type="text/javascript" src="custom-xml.js"></script>
</head>
<body>
Expand Down
Loading

0 comments on commit d9001d1

Please sign in to comment.