WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/29/2014 10:05:22 AM (8 years ago)
Author:
nacin
Message:

Add PHP and JS unit tests for custom headers.

props mcsf, ehg.
see #21785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/index.html

    r27155 r27847  
    77  <script src="../../src/wp-includes/js/jquery/jquery.js"></script>
    88  <script src="../../src/wp-includes/js/underscore.min.js"></script>
     9  <script src="../../src/wp-includes/js/backbone.min.js"></script>
    910  <script src="../../src/wp-includes/js/zxcvbn.min.js"></script>
    1011   
     
    1213  <link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen" />
    1314  <script src="vendor/qunit.js"></script>
    14 
    15   <!-- Tested files -->
    16   <script src="../../src/wp-admin/js/password-strength-meter.js"></script>
    17   <script src="../../src/wp-includes/js/shortcode.js"></script>
    18 
    19   <!-- Unit tests -->
    20   <script src="wp-admin/js/password-strength-meter.js"></script>
    21   <script src="wp-includes/js/shortcode.js"></script>
    22 
     15  <script src="vendor/sinon.js"></script>
     16  <script src="vendor/sinon-qunit.js"></script>
    2317</head>
    2418<body>
     
    2822    <h2 id="qunit-userAgent"></h2>
    2923    <ol id="qunit-tests"></ol>
    30     <div id="qunit-fixture"></div>
     24    <div id="qunit-fixture">
     25      <script src="fixtures/customize-header.js"></script>
     26    </div>
    3127    <p><a href="editor">TinyMCE tests</a></p>
     28
     29    <!-- Tested files -->
     30    <script src="../../src/wp-admin/js/password-strength-meter.js"></script>
     31    <script src="../../src/wp-includes/js/customize-models.js"></script>
     32    <script src="../../src/wp-includes/js/shortcode.js"></script>
     33
     34    <!-- Unit tests -->
     35    <script src="wp-admin/js/password-strength-meter.js"></script>
     36    <script src="wp-admin/js/customize-header.js"></script>
     37    <script src="wp-includes/js/shortcode.js"></script>
    3238  </div>
    3339</body>
Note: See TracChangeset for help on using the changeset viewer.