Dotclear


Ignore:
Timestamp:
09/04/13 21:55:21 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

[Tests] Add tests for media uploader
Refactoring of _media.js : put all code in a jquery plugin to make
it easy to test and to avoid polluting global namespace.
Use same jquery for tests and for admin

Need to add more tests for media uploader
Fix indentation for all js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/functional/lib/jasmine-jquery-bootstrap.js

    r1602 r1724  
    11(function() { 
    2     jasmine.getFixtures().fixturesPath = 'fixtures'; 
     2     jasmine.getFixtures().fixturesPath = 'fixtures'; 
     3     jasmine.getStyleFixtures().fixturesPath = '../../admin/style'; 
    34 
    4     var jasmineEnv = jasmine.getEnv(); 
    5     jasmineEnv.updateInterval = 1000; 
     5     var jasmineEnv = jasmine.getEnv(); 
     6     jasmineEnv.updateInterval = 1000; 
    67 
    7     var htmlReporter = new jasmine.HtmlReporter(); 
     8     var htmlReporter = new jasmine.HtmlReporter(); 
    89 
    9     jasmineEnv.addReporter(htmlReporter); 
     10     jasmineEnv.addReporter(htmlReporter); 
    1011 
    11     jasmineEnv.specFilter = function(spec) { 
    12      return htmlReporter.specFilter(spec); 
    13     }; 
     12     jasmineEnv.specFilter = function(spec) { 
     13          return htmlReporter.specFilter(spec); 
     14     }; 
    1415 
    15     var currentWindowOnload = window.onload; 
     16     var currentWindowOnload = window.onload; 
    1617 
    17     window.onload = function() { 
    18      if (currentWindowOnload) { 
    19          currentWindowOnload(); 
     18     window.onload = function() { 
     19          if (currentWindowOnload) { 
     20               currentWindowOnload(); 
     21          } 
     22          execJasmine(); 
     23     }; 
     24 
     25     function execJasmine() { 
     26          jasmineEnv.execute(); 
    2027     } 
    21      execJasmine(); 
    22     }; 
    23  
    24     function execJasmine() { 
    25      jasmineEnv.execute(); 
    26     } 
    2728 
    2829})(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map