summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2015-06-03 16:33:50 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2015-06-15 13:54:20 +0300
commit0d2543675fe1b1ce94147629fff2e90137f1d49f (patch)
tree11f60af2c9759f0c5146a85a48e4d02df9c52c86
parentb602835626dfc1532bf5c26b9d2c34054a2d8fac (diff)
downloadqtlocation-mapboxgl-0d2543675fe1b1ce94147629fff2e90137f1d49f.tar.gz
Update the tests
Reflect the changes on the previous MBGL version bump and unskip tests that should pass now.
-rw-r--r--test/js/gzip.test.js2
-rw-r--r--test/js/map.test.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/js/gzip.test.js b/test/js/gzip.test.js
index ed1bb3c92f..2ed0080ac1 100644
--- a/test/js/gzip.test.js
+++ b/test/js/gzip.test.js
@@ -104,7 +104,7 @@ test('gzip', function(t) {
mbgl.once('message', function(msg) {
if (msg.severity == 'ERROR') {
t.ok(msg, 'emits error');
- t.equal(msg.class, 'ResourceLoader');
+ t.equal(msg.class, 'Style');
t.equal(msg.severity, 'ERROR');
t.ok(msg.text.match(/pbf unknown field type exception/), 'error text matches');
}
diff --git a/test/js/map.test.js b/test/js/map.test.js
index a29f661d82..ce6017beb7 100644
--- a/test/js/map.test.js
+++ b/test/js/map.test.js
@@ -220,10 +220,10 @@ test('Map', function(t) {
});
});
- t.skip('returns an error', function(t) {
+ t.test('returns an error', function(t) {
mbgl.on('message', function(msg) {
t.ok(msg, 'emits error');
- t.equal(msg.class, 'ResourceLoader');
+ t.equal(msg.class, 'Style');
t.equal(msg.severity, 'ERROR');
t.ok(msg.text.match(/Failed to load/), 'error text matches');
});