From 3f11eae329356728f8506e454c42ebefdef52b5d Mon Sep 17 00:00:00 2001 From: rwldrn Date: Tue, 5 Apr 2011 11:25:24 -0400 Subject: [PATCH] [#464] Run all core tests from Popcorn API Test Suite --- test/butter_test.html | 77 ++++++++++++++++++++- test/index.html | 115 ++++++++++++++++--------------- test/popcorn.unit.js | 9 +++ test/ready.html | 156 +++++++++++++++++++++++++++++------------- 4 files changed, 251 insertions(+), 106 deletions(-) diff --git a/test/butter_test.html b/test/butter_test.html index 085974c..77b4bdb 100644 --- a/test/butter_test.html +++ b/test/butter_test.html @@ -3,12 +3,85 @@ Popcorn Butter Test + + + +

Butter Dependencies

+

Butter Popcorn Dependencies

@@ -16,10 +89,10 @@
    -
    + -
    + diff --git a/test/index.html b/test/index.html index c891c93..3dde4c0 100644 --- a/test/index.html +++ b/test/index.html @@ -7,6 +7,7 @@ + - -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - - -
    -
    - -
    -
    + + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + +
    +
    + +
    +
    -
    +
    - + diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index 59e0b9a..97bcbeb 100755 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -2087,5 +2087,14 @@ test("Last Check", function () { } catch (e) {}; + // Trigger follow-up tests to run in iframes + (function( $ ) { + + $("iframe[data-src]").attr( "src", function() { + return $(this).data("src"); + }); + + })( jQuery ); + }); diff --git a/test/ready.html b/test/ready.html index 3b835a6..8ea32a2 100644 --- a/test/ready.html +++ b/test/ready.html @@ -1,49 +1,107 @@ - - - - Popcorn API - - - - - - - - - + + + + Popcorn API + + + + + + + + + +

    Popcorn(/* DOM Ready */)

    + + + + -- 2.43.0