Browse Source

update spec with new asset

deepak1556 8 years ago
parent
commit
6be779c777
3 changed files with 3 additions and 3 deletions
  1. 3 3
      spec/chromium-spec.js
  2. BIN
      spec/fixtures/assets/cat.pdf
  3. BIN
      spec/fixtures/assets/pdf.pdf

+ 3 - 3
spec/chromium-spec.js

@@ -806,7 +806,7 @@ describe('chromium feature', function () {
   describe('PDF Viewer', function () {
     let w = null
     const pdfSource = url.format({
-      pathname: path.join(fixtures, 'assets', 'pdf.pdf').replace(/\\/g, '/'),
+      pathname: path.join(fixtures, 'assets', 'cat.pdf').replace(/\\/g, '/'),
       protocol: 'file',
       slashes: true
     })
@@ -829,7 +829,7 @@ describe('chromium feature', function () {
         assert.equal(parsedURL.query.src, pdfSource)
       })
       w.webContents.on('page-title-updated', function () {
-        assert.equal(w.webContents.getTitle(), 'PDF')
+        assert.equal(w.webContents.getTitle(), 'cat.pdf')
         done()
       })
       w.webContents.loadURL(pdfSource)
@@ -844,7 +844,7 @@ describe('chromium feature', function () {
       })
       fetch(pdfSource).then(function (res) {
         assert.equal(res.status, 200)
-        assert.notEqual(document.title, 'PDF')
+        assert.notEqual(document.title, 'cat.pdf')
         done()
       }).catch(function (e) {
         done(e)

BIN
spec/fixtures/assets/cat.pdf


BIN
spec/fixtures/assets/pdf.pdf