mkws-moved-to-github.git
10 years agoTwo complete sets of widgets.
Mike Taylor [Wed, 5 Feb 2014 11:33:40 +0000 (11:33 +0000)]
Two complete sets of widgets.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Wed, 5 Feb 2014 00:28:53 +0000 (00:28 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agomkwsStat Styles work on classes as well as ids.
Mike Taylor [Wed, 5 Feb 2014 00:27:45 +0000 (00:27 +0000)]
mkwsStat Styles work on classes as well as ids.

10 years agoUse class rather than id for mkwsStat.
Mike Taylor [Wed, 5 Feb 2014 00:26:00 +0000 (00:26 +0000)]
Use class rather than id for mkwsStat.

10 years agomkwsStat is addressed by class rather than id.
Mike Taylor [Wed, 5 Feb 2014 00:25:35 +0000 (00:25 +0000)]
mkwsStat is addressed by class rather than id.

10 years agoFix CSS to style mkwsLang according to class as well as id.
Mike Taylor [Wed, 5 Feb 2014 00:10:38 +0000 (00:10 +0000)]
Fix CSS to style mkwsLang according to class as well as id.

10 years agoLanguage menu is now set up by classes.
Mike Taylor [Wed, 5 Feb 2014 00:08:41 +0000 (00:08 +0000)]
Language menu is now set up by classes.
(A bit vacuous, this, since there can't be more than one of them at
the moment. But down the line it would be nice to fix that.)

10 years agoUse boolean true instead of numeric 1.
Mike Taylor [Wed, 5 Feb 2014 00:01:10 +0000 (00:01 +0000)]
Use boolean true instead of numeric 1.

10 years agoRename hash more informatively.
Mike Taylor [Wed, 5 Feb 2014 00:00:19 +0000 (00:00 +0000)]
Rename hash more informatively.

10 years agoUse class rather than id for mkwsLang.
Mike Taylor [Tue, 4 Feb 2014 23:57:17 +0000 (23:57 +0000)]
Use class rather than id for mkwsLang.

10 years agoUse class rather than id for mkwsTargets.
Mike Taylor [Tue, 4 Feb 2014 23:54:57 +0000 (23:54 +0000)]
Use class rather than id for mkwsTargets.

10 years agoRemove some outdated comments.
Mike Taylor [Tue, 4 Feb 2014 23:54:40 +0000 (23:54 +0000)]
Remove some outdated comments.

10 years agoRemove all direct calls to console.log()
Mike Taylor [Tue, 4 Feb 2014 23:48:29 +0000 (23:48 +0000)]
Remove all direct calls to console.log()
All calls are now wrapped in mkws.debug_function(), the jQuery
plugin's debug() inner function or the main log() inner
function, so that old versions of IE don't barf on it.
(We might argue that three debug-logging functions in mkws.js alone is
two too many. I won't disagree.)

10 years ago`make node-modules' will always check for missing modules
Wolfram Schneider [Tue, 4 Feb 2014 18:55:39 +0000 (19:55 +0100)]
`make node-modules' will always check for missing modules

10 years agomore examples
Wolfram Schneider [Tue, 4 Feb 2014 18:51:37 +0000 (19:51 +0100)]
more examples

10 years agouse package.json for installing npm modules
Wolfram Schneider [Tue, 4 Feb 2014 18:50:17 +0000 (19:50 +0100)]
use package.json for installing npm modules

10 years agoupdate documentation
Wolfram Schneider [Tue, 4 Feb 2014 18:47:52 +0000 (19:47 +0100)]
update documentation

10 years agoadd a npm package config file for our testing tools
Wolfram Schneider [Tue, 4 Feb 2014 18:42:57 +0000 (19:42 +0100)]
add a npm package config file for our testing tools

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Tue, 4 Feb 2014 17:17:35 +0000 (17:17 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agojasmine puts the status message in a different class on failure
Wolfram Schneider [Tue, 4 Feb 2014 17:16:44 +0000 (17:16 +0000)]
jasmine puts the status message in a different class on failure

10 years agoindent
Wolfram Schneider [Tue, 4 Feb 2014 17:16:30 +0000 (17:16 +0000)]
indent

10 years agomkws.switchView() now operates on a named team.
Mike Taylor [Tue, 4 Feb 2014 17:09:32 +0000 (17:09 +0000)]
mkws.switchView() now operates on a named team.
(Although #mkwsBlanket and #mkwsMOTD are still used at the moment.)
The search-form is only made once per team!
Fill in .mkwsResults for each team rather than #mkwsResults

10 years agoUse a class for mkwsResults instead of an ID.
Mike Taylor [Tue, 4 Feb 2014 17:06:55 +0000 (17:06 +0000)]
Use a class for mkwsResults instead of an ID.

10 years agoUse classes instead of IDs for mkwsSearch and mkwsSwitch.
Mike Taylor [Tue, 4 Feb 2014 16:45:09 +0000 (16:45 +0000)]
Use classes instead of IDs for mkwsSearch and mkwsSwitch.

10 years agomkwsTeam_AUTO is now added to add teamless MKWS elements.
Mike Taylor [Tue, 4 Feb 2014 16:44:37 +0000 (16:44 +0000)]
mkwsTeam_AUTO is now added to add teamless MKWS elements.

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Tue, 4 Feb 2014 16:31:53 +0000 (16:31 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agodisplay HTTP errors and give up
Wolfram Schneider [Tue, 4 Feb 2014 16:29:04 +0000 (16:29 +0000)]
display HTTP errors and give up

page.open(url, function (status)  checks only for network errors,
and will return 'success' for HTTP 404. We must check onResourceError  too

10 years agoRemove no-longer-needed special classes mkwsSwitch_targets and
Mike Taylor [Tue, 4 Feb 2014 16:26:35 +0000 (16:26 +0000)]
Remove no-longer-needed special classes mkwsSwitch_targets and
mkwsSwitch_records, which only the test-suite used.

10 years agoUse child-counting to find Targets and Records links.
Mike Taylor [Tue, 4 Feb 2014 16:25:50 +0000 (16:25 +0000)]
Use child-counting to find Targets and Records links.
We no longer need the special IDs mkwsSwitch_targets and mkwsSwitch_records.

10 years agoTweaks to test-suite expectation as we move towards classes.
Mike Taylor [Tue, 4 Feb 2014 16:18:03 +0000 (16:18 +0000)]
Tweaks to test-suite expectation as we move towards classes.

10 years agoRecord/target display switching now handled using teams.
Mike Taylor [Tue, 4 Feb 2014 16:17:18 +0000 (16:17 +0000)]
Record/target display switching now handled using teams.
By-target display now handled using teams.

10 years agomkwsTargets styling targeted at class as well as ID
Mike Taylor [Tue, 4 Feb 2014 15:50:36 +0000 (15:50 +0000)]
mkwsTargets styling targeted at class as well as ID
mkwsBytarget styling targeted at class INSTEAD OF ID

10 years ago#mkwsSwitch styles also apply to .mkwsSwitch
Mike Taylor [Tue, 4 Feb 2014 15:38:32 +0000 (15:38 +0000)]
#mkwsSwitch styles also apply to .mkwsSwitch

10 years agoswitchView() now works entirely using jQuery
Mike Taylor [Tue, 4 Feb 2014 15:01:53 +0000 (15:01 +0000)]
switchView() now works entirely using jQuery

10 years agocorrect file type
Wolfram Schneider [Mon, 3 Feb 2014 18:18:41 +0000 (19:18 +0100)]
correct file type

10 years agomake screenshots of mkws.indexdata.com and indexdata.com
Wolfram Schneider [Mon, 3 Feb 2014 18:02:56 +0000 (19:02 +0100)]
make screenshots of mkws.indexdata.com and indexdata.com

10 years agoset page.clipRect values
Wolfram Schneider [Mon, 3 Feb 2014 17:54:24 +0000 (18:54 +0100)]
set page.clipRect values

contents which is outside of this area will be cutted (scrolling effect)

10 years agotune screenshot size
Wolfram Schneider [Mon, 3 Feb 2014 17:53:35 +0000 (18:53 +0100)]
tune screenshot size

10 years agonew target screenshots
Wolfram Schneider [Mon, 3 Feb 2014 17:52:24 +0000 (18:52 +0100)]
new target screenshots

10 years agokeep ./images directory
Wolfram Schneider [Mon, 3 Feb 2014 17:50:40 +0000 (18:50 +0100)]
keep ./images directory

10 years agowait longer for "source in navi bar"
Wolfram Schneider [Mon, 3 Feb 2014 15:43:32 +0000 (15:43 +0000)]
wait longer for "source in navi bar"

10 years agophantomjs: set defaul timeout to 12 seconds
Wolfram Schneider [Mon, 3 Feb 2014 15:42:19 +0000 (15:42 +0000)]
phantomjs: set defaul timeout to 12 seconds

10 years agocleanup mkws-error.html
Wolfram Schneider [Mon, 3 Feb 2014 15:28:09 +0000 (15:28 +0000)]
cleanup mkws-error.html

10 years agowait longer for "source in navi bar"
Wolfram Schneider [Mon, 3 Feb 2014 14:26:34 +0000 (14:26 +0000)]
wait longer for "source in navi bar"

10 years agonew server alias a.mkws.indexdata.com for regression tests
Wolfram Schneider [Mon, 3 Feb 2014 12:58:56 +0000 (12:58 +0000)]
new server alias a.mkws.indexdata.com for regression tests

10 years agothe undefined object in JS is evil, use the typeof operator instead
Wolfram Schneider [Mon, 3 Feb 2014 12:55:54 +0000 (13:55 +0100)]
the undefined object in JS is evil, use the typeof operator instead

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Mon, 3 Feb 2014 12:42:52 +0000 (12:42 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agoFix race condtion in my_onshow(), MKWS-105
Wolfram Schneider [Mon, 3 Feb 2014 12:38:03 +0000 (12:38 +0000)]
Fix race condtion in my_onshow(), MKWS-105

call renderDetails(m_curDetRecData) only if the global variable
m_curDetRecData is set.

m_curDetRecData will be set in my_onrecord(), and apparently there
is a race condtion that m_curDetRecData is not set yet, or will
be reset in showDetails() later. This should fix MKWS-105

10 years agoconfigurable debug level by env variable DEBUG, e.g.
Wolfram Schneider [Mon, 3 Feb 2014 12:17:16 +0000 (13:17 +0100)]
configurable debug level by env variable DEBUG, e.g.

$ DEBUG=2 make phantomjs

10 years agodisplay webkit console.log() output
Wolfram Schneider [Mon, 3 Feb 2014 12:04:47 +0000 (13:04 +0100)]
display webkit console.log() output

make the test output configurable with debug=0..2

10 years agoindent phandom files
Wolfram Schneider [Mon, 3 Feb 2014 11:49:44 +0000 (12:49 +0100)]
indent phandom files

10 years agoenable to set screenshot width as third parameter
Wolfram Schneider [Mon, 3 Feb 2014 11:48:38 +0000 (12:48 +0100)]
enable to set screenshot width as third parameter

10 years agoupgrade from jquery-1.4.4.min.js to jquery-1.6.4.min.js, see MKWS-110
Wolfram Schneider [Mon, 3 Feb 2014 10:06:26 +0000 (10:06 +0000)]
upgrade from jquery-1.4.4.min.js to jquery-1.6.4.min.js, see MKWS-110

10 years agoupgrade from jquery-1.4.4.min.js to jquery-1.6.4.min.js, see MKWS-110
Wolfram Schneider [Mon, 3 Feb 2014 10:03:45 +0000 (10:03 +0000)]
upgrade from jquery-1.4.4.min.js to jquery-1.6.4.min.js, see MKWS-110

10 years agoupgrade from jquery-1.4.4.min.js to jquery-1.6.4.min.js, see MKWS-110
Wolfram Schneider [Mon, 3 Feb 2014 09:56:52 +0000 (09:56 +0000)]
upgrade from jquery-1.4.4.min.js to jquery-1.6.4.min.js, see MKWS-110

The commit which run in an endless loop with jquery-1.4.4.min.js is:
commit e1910c1453642bea8ffad32e3e1a4e52f1ecf8eb

10 years agoconfigurable test URL
Wolfram Schneider [Fri, 31 Jan 2014 14:00:34 +0000 (14:00 +0000)]
configurable test URL

10 years agocleanup debugging
Wolfram Schneider [Fri, 31 Jan 2014 11:56:35 +0000 (11:56 +0000)]
cleanup debugging

10 years agodump "mkws" object on error, and append it to the mkws-error.html page
Wolfram Schneider [Fri, 31 Jan 2014 11:52:34 +0000 (11:52 +0000)]
dump "mkws" object on error, and append it to the mkws-error.html page

10 years agoin case of an test error dump the HTML DOM to a local file.
Wolfram Schneider [Fri, 31 Jan 2014 11:34:05 +0000 (11:34 +0000)]
in case of an test error dump the HTML DOM to a local file.

make poll time configurable

10 years agopoll up to 8 seconds
Wolfram Schneider [Fri, 31 Jan 2014 10:50:32 +0000 (10:50 +0000)]
poll up to 8 seconds

10 years agoimprove error handling for failed URLs
Wolfram Schneider [Fri, 31 Jan 2014 10:46:45 +0000 (10:46 +0000)]
improve error handling for failed URLs

10 years agoimprove polling
Wolfram Schneider [Fri, 31 Jan 2014 10:29:52 +0000 (10:29 +0000)]
improve polling

supports now fraction of seconds, default every 500ms

10 years agocheck for node modules, and warn before failing
Wolfram Schneider [Fri, 31 Jan 2014 09:34:34 +0000 (09:34 +0000)]
check for node modules, and warn before failing

10 years agoextract and display number of tests, and duration
Wolfram Schneider [Fri, 31 Jan 2014 09:34:17 +0000 (09:34 +0000)]
extract and display number of tests, and duration

10 years agocleanup screenshot file
Wolfram Schneider [Thu, 30 Jan 2014 22:46:30 +0000 (22:46 +0000)]
cleanup screenshot file

10 years agofile cleanup
Wolfram Schneider [Thu, 30 Jan 2014 22:44:54 +0000 (22:44 +0000)]
file cleanup

10 years agocleanup
Wolfram Schneider [Thu, 30 Jan 2014 22:44:19 +0000 (22:44 +0000)]
cleanup

10 years agonew target phantomjs
Wolfram Schneider [Thu, 30 Jan 2014 22:36:10 +0000 (22:36 +0000)]
new target phantomjs

10 years agoinstall phantomjs modules
Wolfram Schneider [Thu, 30 Jan 2014 22:28:56 +0000 (22:28 +0000)]
install phantomjs modules

10 years agomake a screenshot if the test failed
Wolfram Schneider [Thu, 30 Jan 2014 22:23:29 +0000 (22:23 +0000)]
make a screenshot if the test failed

10 years agodocumentation
Wolfram Schneider [Thu, 30 Jan 2014 22:15:22 +0000 (22:15 +0000)]
documentation

10 years agoFetch a mkws/jasmine based page into node.js, evaluate the page and check if test...
Wolfram Schneider [Thu, 30 Jan 2014 22:08:38 +0000 (22:08 +0000)]
Fetch a mkws/jasmine based page into node.js, evaluate the page and check if test status

This should make it possible to run the test on the command line in jenkins.

e.g.:

$ phantomjs evaluate.js https://mkws-dev.indexdata.com/jasmine-popup.html
fetch https://mkws-dev.indexdata.com/jasmine-popup.html with status: success
.
.
.
.
.
successfully done

10 years agosupport command line args, e.g.:
Wolfram Schneider [Thu, 30 Jan 2014 18:40:41 +0000 (18:40 +0000)]
support command line args, e.g.:

  phantomjs screenshot.js http://www.indexdata.com indexdata.png

10 years agorender indexdata homepage in more realistic 960x800 pixels
Wolfram Schneider [Thu, 30 Jan 2014 18:31:59 +0000 (18:31 +0000)]
render indexdata homepage in more realistic 960x800 pixels

10 years agoindent
Wolfram Schneider [Thu, 30 Jan 2014 17:39:13 +0000 (17:39 +0000)]
indent

10 years agoindent
Wolfram Schneider [Thu, 30 Jan 2014 17:38:49 +0000 (17:38 +0000)]
indent

10 years agophantomjs example how to create a screenshot of indexdata.com
Wolfram Schneider [Thu, 30 Jan 2014 17:37:24 +0000 (17:37 +0000)]
phantomjs example how to create a screenshot of indexdata.com

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Thu, 30 Jan 2014 17:22:52 +0000 (17:22 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agodomReady() only makes each search-form once :-)
Mike Taylor [Thu, 30 Jan 2014 16:24:41 +0000 (16:24 +0000)]
domReady() only makes each search-form once :-)

10 years agoRemove extraneous logging.
Mike Taylor [Thu, 30 Jan 2014 15:49:57 +0000 (15:49 +0000)]
Remove extraneous logging.

10 years agoonFormSubmitEventHandler() is now team-aware.
Mike Taylor [Thu, 30 Jan 2014 15:42:25 +0000 (15:42 +0000)]
onFormSubmitEventHandler() is now team-aware.

10 years agorun mkws jasmine tests until the first click event
Wolfram Schneider [Thu, 30 Jan 2014 14:04:12 +0000 (14:04 +0000)]
run mkws jasmine tests until the first click event

10 years agoindent
Wolfram Schneider [Thu, 30 Jan 2014 13:59:55 +0000 (13:59 +0000)]
indent

10 years agoindent all test files
Wolfram Schneider [Thu, 30 Jan 2014 13:59:38 +0000 (13:59 +0000)]
indent all test files

10 years agoXML parser test with jasmine
Wolfram Schneider [Thu, 30 Jan 2014 13:58:41 +0000 (13:58 +0000)]
XML parser test with jasmine

10 years agodocumentation
Wolfram Schneider [Thu, 30 Jan 2014 13:52:44 +0000 (13:52 +0000)]
documentation

10 years agoWorkaround for broken XML parser in node.js/jquery/jsdom
Wolfram Schneider [Thu, 30 Jan 2014 13:48:04 +0000 (13:48 +0000)]
Workaround for broken XML parser in node.js/jquery/jsdom

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Thu, 30 Jan 2014 13:42:50 +0000 (13:42 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agoComment.
Mike Taylor [Thu, 30 Jan 2014 12:25:48 +0000 (12:25 +0000)]
Comment.

10 years agoClumsy function name _make_mkws_team() reduced to just team().
Mike Taylor [Thu, 30 Jan 2014 12:05:59 +0000 (12:05 +0000)]
Clumsy function name _make_mkws_team() reduced to just team().
Less explict, but prettier and follows JS tradition.

10 years agoAdd `args' argument to "onrecord" callback, so that it correctly
Mike Taylor [Thu, 30 Jan 2014 12:04:56 +0000 (12:04 +0000)]
Add `args' argument to "onrecord" callback, so that it correctly
receives the teamName parameter (not that it uses it yet, or anything)

10 years agoMuch better encapsulation for mkws.showDetails().
Mike Taylor [Thu, 30 Jan 2014 11:35:23 +0000 (11:35 +0000)]
Much better encapsulation for mkws.showDetails().
This is now a single-line function that invokes the same-named
member function on the appropriate team object. That member
function now does all the actual work, and can access member
variables without explicit leading "team.". We no longer need
the encapsulation-violation team.m_paz reference.

10 years agokeep status of jasmine test in mkws.jasmine_done
Wolfram Schneider [Wed, 29 Jan 2014 18:20:34 +0000 (18:20 +0000)]
keep status of jasmine test in mkws.jasmine_done

that should make it possible to poll for successfull test run

10 years agoPopup records now work for all result-lists, as the request is now
Mike Taylor [Wed, 29 Jan 2014 13:57:41 +0000 (13:57 +0000)]
Popup records now work for all result-lists, as the request is now
sent to the correct m_paz. Fixes bug MKWS-106.

10 years agoRemove gratuitous third search-box.
Mike Taylor [Wed, 29 Jan 2014 13:56:58 +0000 (13:56 +0000)]
Remove gratuitous third search-box.

10 years agoWell, mike2.html is back, as a simple by-hand regression-test.
Mike Taylor [Wed, 29 Jan 2014 13:56:39 +0000 (13:56 +0000)]
Well, mike2.html is back, as a simple by-hand regression-test.

10 years agoCopy of auto3.html that runs on the local development copy of MKWS.
Mike Taylor [Wed, 29 Jan 2014 12:24:17 +0000 (12:24 +0000)]
Copy of auto3.html that runs on the local development copy of MKWS.

10 years agoTowards multiple search forms.
Mike Taylor [Tue, 28 Jan 2014 17:25:19 +0000 (17:25 +0000)]
Towards multiple search forms.

Jeez, this is painful. Browser JavaScript must be the world
development environment since the batch-processing systems of the
early 1970s. Every error is diagnosed by silent no-opping.

10 years ago.mkwsSearch also included in team-instantiation loop
Mike Taylor [Tue, 28 Jan 2014 15:33:30 +0000 (15:33 +0000)]
.mkwsSearch also included in team-instantiation loop

10 years agoStyling for search-box is now keyed on class as well as id.
Mike Taylor [Tue, 28 Jan 2014 11:21:11 +0000 (11:21 +0000)]
Styling for search-box is now keyed on class as well as id.