Skip to content

Commit

Permalink
Small improvements to validation suite
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharrtell committed Feb 14, 2016
1 parent 7b89873 commit 9265939
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 27 deletions.
4 changes: 2 additions & 2 deletions validationsuite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<title>JSTS validation suite</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/ext-all-debug.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/classic/theme-triton/theme-triton.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.13.0/ol.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.13.1/ol.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/classic/theme-triton/resources/theme-triton-all.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.13.0/ol.css" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.13.1/ol.css" type="text/css">
<script type="text/javascript" src="../jsts.min.js"></script>
<script src="vs.js"></script>
</head>
Expand Down
17 changes: 6 additions & 11 deletions validationsuite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
"description": "JTS test case runner for JSTS",
"version": "0.1.0",
"author": "Björn Harrtell <[email protected]>",
"licenses": [
{
"type": "LGPL",
"url": "https://raw.github.com/bjornharrtell/jsts/master/license-notice.txt"
}
],
"licenses": "BSD-3-Clause",
"devDependencies": {
"babel-preset-es2015": "6.3.13",
"babel-register": "6.4.3",
"browserify": "13.0.0",
"rollup": "0.25.2",
"babel-cli": "6.5.1",
"babel-preset-es2015": "6.5.0",
"babel-register": "6.5.1",
"rollup": "0.25.3",
"uglify-js": "2.6.1"
},
"engines": {
Expand All @@ -27,6 +22,6 @@
]
},
"scripts": {
"build": "rollup -c | browserify -t babelify - | uglifyjs -c -m > vs.js"
"build": "rollup -c | babel --presets es2015 | uglifyjs -c -m > vs.js"
}
}
36 changes: 22 additions & 14 deletions validationsuite/src/testCaseForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ function onCaseSelect (combo, record, index) {
testCaseDetailsPanel.showTestCase(record)
}

const combo = Ext.create('Ext.form.ComboBox', {
width: 450,
xtype: 'combo',
fieldLabel: 'Case',
name: 'case',
ref: '../case',
store: cases,
triggerAction: 'all',
lazyRender: true,
displayField: 'desc',
listeners: {
'select': onCaseSelect
}
})

cases.on('load', (store, records) => {
const record = records[0]
combo.select(record)
testCaseDetailsPanel.showTestCase(record)
})

export default Ext.create('Ext.panel.Panel', {
layout: 'form',
items: [{
Expand All @@ -61,19 +82,6 @@ export default Ext.create('Ext.panel.Panel', {
listeners: {
'select': onGroupSelect
}
}, {
width: 450,
xtype: 'combo',
fieldLabel: 'Case',
name: 'case',
ref: '../case',
store: cases,
triggerAction: 'all',
lazyRender: true,
displayField: 'desc',
listeners: {
'select': onCaseSelect
}
}]
}, combo]

})

0 comments on commit 9265939

Please sign in to comment.