mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
* Intentionally break Travis. * Alphabetize tests, remove orphaned test, and add fail to test that's running. * Unbreak test, disable OS X, move scripts, list compiler directory. * Test Java, break test. * Unbreak test, call compile script. * Compile main_compressed.js * Run test command using bash. * Fix path. * Exclude node modules. * Be more specific about JS files to compile. * Test failure. * Restore OSX, undo Blockly failure, remove compilation demo, add compilation test. * Delete manual test files. * Ignore downloaded/generated files. * Whitespace cleanup.
40 lines
1.1 KiB
HTML
40 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Blockly: Advanced Compilation Test</title>
|
|
<script src="main_compressed.js"></script>
|
|
<style>
|
|
body {
|
|
background-color: #fff;
|
|
font-family: sans-serif;
|
|
}
|
|
h1 {
|
|
font-weight: normal;
|
|
font-size: 140%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Blockly: Advanced Compilation Test</h1>
|
|
|
|
<p>To run this test manually, download
|
|
<a href="https://dl.google.com/closure-compiler/compiler-latest.zip">closure-compiler-vxxxxxxxx.jar</a>,
|
|
place it in this directory, then run compile.js from the command line.</p>
|
|
|
|
<p>Measure the size of main_compressed.js (295kb as of October 2017), then reload
|
|
this page and see if Blockly works.</p>
|
|
|
|
<div id="blocklyDiv" style="height: 480px; width: 600px;"></div>
|
|
<xml id="toolbox" style="display: none">
|
|
<block type="controls_if"></block>
|
|
<block type="logic_compare"></block>
|
|
<block type="controls_repeat_ext"></block>
|
|
<block type="math_number"></block>
|
|
<block type="math_arithmetic"></block>
|
|
<block type="text"></block>
|
|
<block type="text_print"></block>
|
|
</xml>
|
|
</body>
|
|
</html>
|