mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Fix generator tests
This commit is contained in:
@@ -59,6 +59,8 @@
|
||||
<script src="../../generators/dart/colour.js"></script>
|
||||
<script src="../../generators/dart/variables.js"></script>
|
||||
<script src="../../generators/dart/procedures.js"></script>
|
||||
<script src="../../style/classic.js"></script>
|
||||
|
||||
|
||||
<script src="unittest.js"></script>
|
||||
<script src="../../msg/messages.js"></script>
|
||||
@@ -89,6 +91,7 @@ function start() {
|
||||
zoom: {controls: true, wheel: true}
|
||||
});
|
||||
changeIndex();
|
||||
Blockly.setStyle(Blockly.Styles.Classic);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -35,11 +35,11 @@ var fs = require('fs');
|
||||
*/
|
||||
function runLangGeneratorInBrowser(browser, filename, codegenFn) {
|
||||
return browser
|
||||
.pause(9000)
|
||||
.pause(5000)
|
||||
.then(function() {
|
||||
this.execute(codegenFn)
|
||||
})
|
||||
.pause(90000)
|
||||
.pause(10000)
|
||||
.getValue("#importExport")
|
||||
.then(function(result) {
|
||||
fs.writeFile(filename, result, function(err) {
|
||||
@@ -80,7 +80,7 @@ function runGeneratorsInBrowser() {
|
||||
loadSelected();
|
||||
})
|
||||
})
|
||||
.pause(50000)
|
||||
.pause(10000)
|
||||
.then(function() {
|
||||
return runLangGeneratorInBrowser(this, prefix + '.js', function() {
|
||||
toJavaScript();
|
||||
@@ -106,7 +106,7 @@ function runGeneratorsInBrowser() {
|
||||
toPhp();
|
||||
});
|
||||
})
|
||||
.pause(50000)
|
||||
.pause(10000)
|
||||
.catch(function(e) {
|
||||
console.error('Error: ', e);
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ done
|
||||
|
||||
|
||||
# Clean up.
|
||||
#rm -r $TMP_DIR
|
||||
rm -r $TMP_DIR
|
||||
|
||||
if [ "$FAILURE_COUNT" -eq "0" ]; then
|
||||
echo -e "${BOLD_GREEN}All generator tests passed.${ANSI_RESET}"
|
||||
|
||||
Reference in New Issue
Block a user