aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario
AgeCommit message (Expand)Author
2010-10-20fix some of the failing ie testsMisko Hevery
2010-10-20Lots of stability and performance updates and UI polish too.Elliott Sprehn
2010-10-19fixed Scenario.js so that it does not clobber global varsMisko Hevery
2010-10-19fixed testsMisko Hevery
2010-10-19Fix browser triggering in scenario to always do native events.Misko Hevery
2010-10-19Significantly clean up the way the scenario DSL works and implement many more...Elliott Sprehn
2010-10-15fixed lint warnings and one flaky testMisko Hevery
2010-10-14New Angular Scenario runner and DSL system with redesigned HTML UI.Elliott Sprehn
2010-09-23cleanup underscore.js form rakefileMisko Hevery
2010-09-14Fixed all trivial jslint violationsMisko Hevery
2010-08-18stringify names for better compression, remove dead functions, removed unders...Misko Hevery
2010-08-13Fix issue with jquery not being visible in productionShyam Seshadri
2010-08-13Provide all jquery functions as futuresShyam Seshadri
2010-08-13Revert click dsl, since what is returned by element is a jquery objectShyam Seshadri
2010-08-13Pull in Rajat's changes to add click and url checking dslShyam Seshadri
2010-08-11Fix toEqual matcher to use angular.equals instead of simple == comparison, wh...Shyam Seshadri
2010-08-11modify element dsl to understand angular bindings and return jquery object fo...Shyam Seshadri
2010-08-10Change repeater dsl to collect and return an array of string contents based o...Shyam Seshadri
2010-08-10Fix test breakage in Chrome. Chrome JQuery doesn't like malformed table html ...Shyam Seshadri
2010-08-10Inject jquery into future scope, and rename outer scenario to _window, which ...Shyam Seshadri
2010-08-09Add element DSL, to find an element. Has knowledge of finding ng:bind element...Shyam Seshadri
2010-08-06added repeater.collect to E2E DSLAndres Ornelas
2010-08-05fix build breakage by returning the added futures in the DSLAndres Ornelas
2010-08-05Added new files to Rakefile and consistently used .addFutureAndres Ornelas
2010-08-04added MatcherSpecAndres Ornelas
2010-08-04test passing with repeater.countAndres Ornelas
2010-07-27refactoring done but Expect not workingAndres Ornelas
2010-07-27before pulling testcontext outAndres Ornelas
2010-07-27stable before refactoringAndres Ornelas
2010-07-27Merge branch 'master' of github.com:angular/angular.js into futureAndres Ornelas
2010-07-08fixed IE testsMisko Hevery
2010-06-30all tests passing with new futures conceptAndres Ornelas
2010-06-29initial conceptAndres Ornelas
2010-06-22expose e2e test resultsAndres Ornelas
2010-06-09fixed undefined testWindow bugAndres Ornelas
2010-06-09add beforeEach and afterEach to scenario DSLAndres Ornelas
2010-06-09change repeater count expectation wordingAndres Ornelas
2010-06-09add repeater DSL and fix typoAndres Ornelas
2010-05-27extracted switchRouteMatcher and added necessary libraries to angular-scenarioAndres Ornelas
2010-05-26navigate to scenario waits for outstanding requests to clear before proceeding.Andres Ornelas
2010-05-26fixed broken jstd conf fileAndres Ornelas
2010-05-25added rake task to create a single file for scenario runnerMisko Hevery
2010-05-25fixed collapsed issueAndres Ornelas
2010-05-24added dsl tests and select methodAndres Ornelas
2010-05-24added error handling on scenario definitionAndres Ornelas
2010-05-24happyAndres Ornelas Mesta
2010-05-20semi working stateMisko Hevery
2010-05-20basic end to end runnerMisko Hevery
2010-04-20fixes to enable ieMisko Hevery
2010-04-19lintMisko Hevery
p">{ Irssi::print "Couldn't find a valid XMMS-InfoPipe FIFO."; return; } $xf = '/tmp/xmms-info'; } my %xi; open(XMMS, "<", $xf); while (<XMMS>) { chomp; my ($key, $value) = split /: /, $_, 2; $xi{$key} = $value; } close(XMMS); my %fs; # %status $fs{'status'} = $xi{'Status'}; # %title if ($fs{'status'} ne "Playing") { if (Irssi::settings_get_bool('xmms_print_if_stopped')) { $fs{'title'} = sprintf('(%s) %s', $fs{'status'}, $xi{'Title'}); } else { Irssi::print "XMMS is currently not playing."; return; } } else { $fs{'title'} = $xi{'Title'}; } # %file $fs{'file'} = $xi{'File'}; # %length $fs{'length'} = &format_time($xi{'Time'}); # %pos $fs{'pos'} = &format_time($xi{'Position'}); # %bitrate $fs{'bitrate'} = sprintf("%.0fkbps", $xi{'Current bitrate'} / 1000); # %freq $fs{'freq'} = sprintf("%.1fkHz", $xi{'Samping Frequency'} / 1000); # %pctdone if ($xi{'uSecTime'} > 0) { $fs{'pctdone'} = sprintf("%.1f%%%%", ($xi{'uSecPosition'} / $xi{'uSecTime'}) * 100); } else { $fs{'pctdone'} = "0.0%%"; } # %channels $fs{'channels'} = $xi{'Channels'}; # %pl_total $fs{'pl_total'} = $xi{'Tunes in playlist'}; # %pl_current $fs{'pl_current'} = $xi{'Currently playing'}; # %pl_pctdone $fs{'pl_pctdone'} = sprintf("%.1f%%%%", ($fs{'pl_current'} / ($fs{'pl_total'} ? $fs{'pl_total'} : 1)) * 100); my ($format) = ($xi{'uSecTime'} == "-1") ? Irssi::settings_get_str('xmms_format_streaming') : Irssi::settings_get_str('xmms_format'); foreach (keys %fs) { $format =~ s/\%$_/$fs{$_}/g; } # sending it. if ($server && $server->{connected} && $witem && ($witem->{type} eq "CHANNEL" || $witem->{type} eq "QUERY")) { if ($args eq "") { $witem->command("/SAY $format"); } else { $witem->command("/MSG $args $format"); } } else { Irssi::print($format); } } sub format_time { my ($m, $s) = split /:/, @_[0], 2; my ($format) = Irssi::settings_get_str('xmms_format_time'); $format =~ s/\%m/$m/g; $format =~ s/\%s/$s/g; return $format; }