Ado
view release on metacpan or search on metacpan
public/vendor/pagedown/Markdown.Editor.js view on Meta::CPAN
// to the user on a case-by-case basis, or translate all strings to
// a different language.
//
// For backwards compatibility reasons, the `options` argument can also
// be just the `helpButton` object, and `strings.help` can also be set via
// `helpButton.title`. This should be considered legacy.
//
// The constructed editor object has the methods:
// - getConverter() returns the markdown converter object that was passed to the constructor
// - run() actually starts the editor; should be called after all necessary plugins are registered. Calling this more than once is a no-op.
// - refreshPreview() forces the preview to be updated. This method is only available after run() was called.
Markdown.Editor = function (markdownConverter, idPostfix, options) {
options = options || {};
if (typeof options.handler === "function") { //backwards compatible behavior
options = { helpButton: options };
}
options.strings = options.strings || {};
if (options.helpButton) {
options.strings.help = options.strings.help || options.helpButton.title;
t/command/crud.t view on Meta::CPAN
$t->put_ok(
'/testatii/update/3.html' => form => {
id => 3,
title => 'Hello3 Updated',
body =>
'Ðла, бала, ниÑа ÑÑÑÑка паниÑа, Хей гиди ÐанÑо, Ð½Ð°Ñ ÐºÐ°Ð¿Ð¸ÑанÑо...'
}
);
$t->get_ok('/testatii/read/3.html')->status_is(200)
->content_like(qr|Hello3\sUpdated</h1>|smx, 'reading updated content - ok');
=pod
=cut
#drop the table
$ado->dbix->dbh->do($create_table->[0]);
done_testing();
t/plugin/ado_helpers.t view on Meta::CPAN
my $app = $t->app;
like((eval { $app->do_sql_file('') }, $@), qr/Can't open file/, 'app->do_sql_file dies ok');
like(
(eval { $app->do_sql_file($app->home->rel_file('t/ado/etc/plugins/foo_no_st.sql')) }, $@),
qr/DBD::SQLite::db do failed: near "updae"/,
'app->do_sql_file dies on SQL ok'
);
$t->get_ok('/test/ado_helpers')->content_like(qr/\["guest"/i, 'user helper')
->content_like(qr/\:"ÐеÑÑÑ"/, 'to_json helper')
->content_like(qr/updated rows\: 1/, 'do_sql_file app monkey_patch')
#head_css and head_javascript
->content_like(qr|/\* content for head_css \*/|, 'content for head_css')
->content_like(qr|<link href=".+/reset.min.css"|, 'reset.min.css')
->content_like(qr|<link href=".+/transition.min.css"|, 'transition.min.css')
->content_like(qr|<link href=".+/site.min.css|, 'site.min.css')
->content_like(qr|//content for head_javascript|, 'content for head_javascript')
->content_like(qr|<script src=".+transition.min.js"></script>|, 'transition.min.js')
->content_like(qr|<script src="mojo/jquery/jquery.js"></script>|, 'jquery.js');
templates/test/ado_helpers.html.ep view on Meta::CPAN
% #ado_helpers.html.ep
<script>
var group_names =
<%== to_json({name => 'ÐеÑÑÑ', groups => [user->ingroup]}) %>;
</script>
updated rows: <%=
app->do_sql_file(app->home->rel_file('t/ado/etc/plugins/foo.sql'));
%>
( run in 0.343 second using v1.01-cache-2.11-cpan-05444aca049 )