From 32071af4b685e88d9c393ead419fc097374c99ff Mon Sep 17 00:00:00 2001 From: Ben Patterson Date: Wed, 10 Sep 2014 16:59:28 -0400 Subject: [PATCH] TE-468 JS test improvement: test for attributes specifically This test is failing in a different test environment (Solano) because the built html has reversed the order of the width and height attributes from what we are expecting. This change focuses the assertion to the pieces that are important (as noted in the unchanged comment above the assertion). --- cms/static/js/spec/utils/handle_iframe_binding_spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cms/static/js/spec/utils/handle_iframe_binding_spec.js b/cms/static/js/spec/utils/handle_iframe_binding_spec.js index 04dd27d183..5311950182 100644 --- a/cms/static/js/spec/utils/handle_iframe_binding_spec.js +++ b/cms/static/js/spec/utils/handle_iframe_binding_spec.js @@ -38,9 +38,8 @@ function ($, _, IframeBinding) { //after calling iframeBinding function: src url of iframes should have "wmode=transparent" in its querystring //and embed objects should have "wmode='transparent'" as an attribute - expect(iframe_html).toEqual('' + - '' + - ''); + expect(iframe_html).toContain('