Skip to content
Permalink
Browse files

Add a test for hinting with ACE editor

  • Loading branch information
The-Compiler committed Sep 7, 2016
1 parent 3e1583b commit 522049132b24354266478b1d496950bb46233d09
@@ -96,6 +96,15 @@ def update_dmg_makefile():
urllib.request.urlcleanup()


def update_ace():
print("Updating ACE...")
url = 'https://raw.githubusercontent.com/ajaxorg/ace-builds/master/src/ace.js'
target_path = os.path.join('tests', 'end2end', 'data', 'hints', 'ace',
'ace.js')
urllib.request.urlretrieve(url, target_path)
urllib.request.urlcleanup()


def main():
parser = argparse.ArgumentParser()
parser.add_argument(
@@ -108,6 +117,7 @@ def main():
args = parser.parse_args()

update_pdfjs(args.pdfjs)
update_ace()
if args.fancy_dmg:
update_dmg_makefile()

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACE editor</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>

<body>
<pre id="editor"></pre>

<script src="ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
</script>

</body>
</html>

0 comments on commit 5220491

Please sign in to comment.