Skip to content

Commit d2e0120

Browse files
committed
fix css build test to account for different browsers
1 parent dbdd70c commit d2e0120

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/functional/cssApp/app.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ <h1>CSS plugin build test</h1>
1515
<script language="JavaScript" type="text/javascript">
1616
var ready = false; // set to true when the test page is ready
1717
require({
18-
baseUrl: "build"
18+
baseUrl: "build",
19+
paths: {
20+
// Needed for browser which does not support Promise natively.
21+
lie: "../bower_components/lie"
22+
}
1923
}, [
2024
"app" // first load the layer
2125
], function () {

tests/functional/cssBuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ define([
2323
.findById("result").getComputedStyle("borderLeftStyle").then(function (style) {
2424
assert.strictEqual(style, "dashed");
2525
}).getComputedStyle("backgroundImage").then(function (style) {
26-
var match = style.match(/(build\/resources\/test\.png)\)?;?$/);
26+
var match = style.match(/(build\/resources\/test\.png)["']?\)?;?$/);
2727
assert.strictEqual(match[1], "build/resources/test.png");
2828
});
2929
}

0 commit comments

Comments
 (0)