Skip to content

Commit

Permalink
fix css build test to account for different browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
clmath committed Apr 23, 2015
1 parent dbdd70c commit d2e0120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/functional/cssApp/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ <h1>CSS plugin build test</h1>
<script language="JavaScript" type="text/javascript">
var ready = false; // set to true when the test page is ready
require({
baseUrl: "build"
baseUrl: "build",
paths: {
// Needed for browser which does not support Promise natively.
lie: "../bower_components/lie"
}
}, [
"app" // first load the layer
], function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/cssBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define([
.findById("result").getComputedStyle("borderLeftStyle").then(function (style) {
assert.strictEqual(style, "dashed");
}).getComputedStyle("backgroundImage").then(function (style) {
var match = style.match(/(build\/resources\/test\.png)\)?;?$/);
var match = style.match(/(build\/resources\/test\.png)["']?\)?;?$/);
assert.strictEqual(match[1], "build/resources/test.png");
});
}
Expand Down

0 comments on commit d2e0120

Please sign in to comment.