Changeset 850


Ignore:
Timestamp:
11/09/08 05:18:14 (3 years ago)
Author:
szabgab
Message:

move the test-helper Editor.pm code to separate file

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MANIFEST

    r849 r850  
    6262t/lib/Padre/Plugin/TestPlugin.pm 
    6363t/lib/Padre/Plugin/Test/Plugin.pm 
     64t/lib/Padre/Editor.pm 
    6465 
    6566xt/99-critic.t 
  • trunk/t/70-document.t

    r849 r850  
    66use Test::More; 
    77use t::lib::Padre; 
     8use t::lib::Padre::Editor; 
    89 
    910my $tests; 
     
    1213use Padre::Document; 
    1314 
    14 my $editor = Padre::Editor->new; 
     15my $editor = t::lib::Padre::Editor->new; 
    1516my $d = Padre::Document->new(editor => $editor); 
    1617 
     
    2122} 
    2223 
    23 package Padre::Editor; 
    24 use strict; 
    25 use warnings; 
    26  
    27 sub new { 
    28     return bless {}, shift; 
    29 } 
    30  
    31 sub SetEOLMode { 
    32 } 
    33  
    34 sub SetText { 
    35     $_[0]->{text} = $_[1]; 
    36 } 
    37  
    38 sub EmptyUndoBuffer { 
    39 } 
    40  
    41 #sub ConvertEOLs { 
    42 #} 
Note: See TracChangeset for help on using the changeset viewer.