[Jifty-commit] r5951 - in jifty/trunk: . t/TestApp-Regions t/TestApp-Regions/doc t/TestApp-Regions/etc t/TestApp-Regions/lib t/TestApp-Regions/lib/TestApp t/TestApp-Regions/lib/TestApp/Regions t/TestApp-Regions/lib/TestApp/Regions/Action t/TestApp-Regions/lib/TestApp/Regions/Model t/TestApp-Regions/log t/TestApp-Regions/share t/TestApp-Regions/share/po t/TestApp-Regions/share/web t/TestApp-Regions/share/web/static t/TestApp-Regions/share/web/templates t/TestApp-Regions/t t/TestApp-Regions/var

Jifty commits jifty-commit at lists.jifty.org
Mon Oct 20 13:27:09 EDT 2008


Author: sartak
Date: Mon Oct 20 13:27:09 2008
New Revision: 5951

Added:
   jifty/trunk/t/TestApp-Regions/
   jifty/trunk/t/TestApp-Regions/Makefile.PL
   jifty/trunk/t/TestApp-Regions/bin/
   jifty/trunk/t/TestApp-Regions/bin/jifty   (contents, props changed)
   jifty/trunk/t/TestApp-Regions/doc/
   jifty/trunk/t/TestApp-Regions/etc/
   jifty/trunk/t/TestApp-Regions/etc/config.yml
   jifty/trunk/t/TestApp-Regions/lib/
   jifty/trunk/t/TestApp-Regions/lib/TestApp/
   jifty/trunk/t/TestApp-Regions/lib/TestApp/Regions/
   jifty/trunk/t/TestApp-Regions/lib/TestApp/Regions/Action/
   jifty/trunk/t/TestApp-Regions/lib/TestApp/Regions/Model/
   jifty/trunk/t/TestApp-Regions/lib/TestApp/Regions/View.pm
   jifty/trunk/t/TestApp-Regions/log/
   jifty/trunk/t/TestApp-Regions/share/
   jifty/trunk/t/TestApp-Regions/share/po/
   jifty/trunk/t/TestApp-Regions/share/web/
   jifty/trunk/t/TestApp-Regions/share/web/static/
   jifty/trunk/t/TestApp-Regions/share/web/templates/
   jifty/trunk/t/TestApp-Regions/share/web/templates/mason.html
   jifty/trunk/t/TestApp-Regions/share/web/templates/mason2.html
   jifty/trunk/t/TestApp-Regions/t/
   jifty/trunk/t/TestApp-Regions/t/01-region.t
   jifty/trunk/t/TestApp-Regions/var/
Modified:
   jifty/trunk/   (props changed)

Log:
 r74210 at onn:  sartak | 2008-10-20 13:26:18 -0400
 Failing tests for TD->mason->mason region output


Added: jifty/trunk/t/TestApp-Regions/Makefile.PL
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Regions/Makefile.PL	Mon Oct 20 13:27:09 2008
@@ -0,0 +1,7 @@
+use inc::Module::Install;
+
+name        'TestApp::Regions';
+version     '0.01';
+requires    'Jifty' => '0.80913';
+
+WriteAll;

Added: jifty/trunk/t/TestApp-Regions/bin/jifty
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Regions/bin/jifty	Mon Oct 20 13:27:09 2008
@@ -0,0 +1,16 @@
+#!/usr/bin/env perl
+use warnings;
+use strict;
+use UNIVERSAL::require;
+
+BEGIN {
+    Jifty::Util->require or die $UNIVERSAL::require::ERROR;
+    my $root = Jifty::Util->app_root;
+    unshift @INC, "$root/lib" if ($root);
+}
+
+use Jifty;
+use Jifty::Script;
+
+local $SIG{INT} = sub { warn "Stopped\n"; exit; };
+Jifty::Script->dispatch();

Added: jifty/trunk/t/TestApp-Regions/etc/config.yml
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Regions/etc/config.yml	Mon Oct 20 13:27:09 2008
@@ -0,0 +1,74 @@
+--- 
+framework: 
+  AdminMode: 0
+  ApplicationClass: TestApp::Regions
+  ApplicationName: TestApp-Regions
+  ApplicationUUID: B2619C96-9EC7-11DD-8442-E9B62EB97401
+  ConfigFileVersion: 4
+  Database: 
+    AutoUpgrade: 1
+    CheckSchema: 1
+    Database: testapp_regions
+    Driver: SQLite
+    Host: localhost
+    Password: ''
+    RecordBaseClass: Jifty::DBI::Record::Cachable
+    User: ''
+    Version: 0.0.1
+  DevelMode: 0
+  L10N: 
+    PoDir: share/po
+  LogLevel: INFO
+  Mailer: Sendmail
+  MailerArgs: []
+
+  Plugins: 
+    - 
+      LetMe: {}
+
+    - 
+      SkeletonApp: {}
+
+    - 
+      REST: {}
+
+    - 
+      Halo: {}
+
+    - 
+      ErrorTemplates: {}
+
+    - 
+      OnlineDocs: {}
+
+    - 
+      CompressedCSSandJS: {}
+
+    - 
+      AdminUI: {}
+
+  PubSub: 
+    Backend: Memcached
+    Enable: ~
+  SkipAccessControl: 0
+  TemplateClass: TestApp::Regions::View
+  View: 
+    FallbackHandler: Jifty::View::Mason::Handler
+    Handlers: 
+      - Jifty::View::Static::Handler
+      - Jifty::View::Declare::Handler
+      - Jifty::View::Mason::Handler
+  Web: 
+    BaseURL: http://localhost
+    DataDir: var/mason
+    Globals: []
+
+    MasonConfig: 
+      autoflush: 0
+      default_escape_flags: h
+      error_format: text
+      error_mode: fatal
+    Port: 8888
+    ServeStaticFiles: 1
+    StaticRoot: share/web/static
+    TemplateRoot: share/web/templates

Added: jifty/trunk/t/TestApp-Regions/lib/TestApp/Regions/View.pm
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Regions/lib/TestApp/Regions/View.pm	Mon Oct 20 13:27:09 2008
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+package TestApp::Regions::View;
+use strict;
+use warnings;
+use Jifty::View::Declare -base;
+
+template '/' => sub {
+    div {{ id is 'mason-wrapper' };
+        render_region(
+            name => 'mason',
+            path => '/mason.html',
+        );
+    };
+};
+
+1;
+

Added: jifty/trunk/t/TestApp-Regions/share/web/templates/mason.html
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Regions/share/web/templates/mason.html	Mon Oct 20 13:27:09 2008
@@ -0,0 +1,6 @@
+<div id="mason2-wrapper">
+    <% Jifty->web->region(
+        name => 'mason2',
+        path => '/mason2.html',
+    ) %>
+</div>

Added: jifty/trunk/t/TestApp-Regions/share/web/templates/mason2.html
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Regions/share/web/templates/mason2.html	Mon Oct 20 13:27:09 2008
@@ -0,0 +1 @@
+<h1>mason 2!</h1>

Added: jifty/trunk/t/TestApp-Regions/t/01-region.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Regions/t/01-region.t	Mon Oct 20 13:27:09 2008
@@ -0,0 +1,21 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Jifty::Test::Dist tests => 1;
+use Jifty::Test::WWW::Mechanize;
+
+my $server = Jifty::Test->make_server;
+isa_ok($server, 'Jifty::Server');
+
+my $URL  = $server->started_ok;
+my $mech = Jifty::Test::WWW::Mechanize->new;
+
+$mech->get_ok($URL);
+
+$mech->content_like(qr{
+    <div \s+ class="mason-wrapper"> .*
+        <div \s+ class="mason2-wrapper"> .*
+            <h2>mason!</h2> .*
+        </div> .*
+    </div>
+}x);


More information about the Jifty-commit mailing list