[Testbot] Plone 5.0 - Python 2.7 - Build # 3042 - Fixed! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Fri Aug 15 00:35:31 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 3042 - Fixed!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-5.0-python-2.7/3042/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: mockup
Branch: refs/heads/master
Date: 2014-08-15T01:15:05+02:00
Author: Nathan Van Gheem (vangheem) <vangheem at gmail.com>
Commit: https://github.com/plone/mockup/commit/bfd816fb1b875ac039693d6282265e9d14df3f9d

fix tests

Files changed:
M bower.json
M tests/pattern-modal-test.js
M tests/pattern-resourceregistry-test.js
M tests/pattern-tinymce-test.js

diff --git a/bower.json b/bower.json
index afd742e..771d93d 100644
--- a/bower.json
+++ b/bower.json
@@ -17,7 +17,7 @@
     "jquery-form": "3.46.0",
     "jquery.cookie": "1.4.1",
     "lodash": "2.4.1",
-    "mockup-core": "1.2.10",
+    "mockup-core": "1.2.11",
     "moment": "2.8.1",
     "pickadate": "3.4.0",
     "requirejs-text": "2.0.12",
diff --git a/tests/pattern-modal-test.js b/tests/pattern-modal-test.js
index 0fd52bb..1db3b7b 100644
--- a/tests/pattern-modal-test.js
+++ b/tests/pattern-modal-test.js
@@ -160,7 +160,7 @@ define([
         })
         .on('formActionSuccess.modal.patterns', function() {
           expect($('.modal').hasClass('in')).to.be.equal(true);
-          var title = $('.modal-header').find('h3').text();
+          var title = $('.modal-header').find('h4').text();
           expect(title).to.equal('Form submitted');
           done();
         })
@@ -180,7 +180,7 @@ define([
           server.respond();
         })
         .on('formActionSuccess.modal.patterns', function() {
-          var title = $('.modal-header').find('h3').text();
+          var title = $('.modal-header').find('h4').text();
           expect(title).to.equal('Form submitted');
           done();
         })
diff --git a/tests/pattern-resourceregistry-test.js b/tests/pattern-resourceregistry-test.js
index a4c1d71..1b2787b 100644
--- a/tests/pattern-resourceregistry-test.js
+++ b/tests/pattern-resourceregistry-test.js
@@ -14,15 +14,15 @@ define([
     beforeEach(function() {
       var testData = {"bundles":{
                         "plone": {
-                          "resource": "plone", "depends": null,
+                          "resources": "plone", "depends": null,
                           "expression": "", "enabled": true, "conditionalcomment": ""
                         },
                         "plone-auth": {
-                          "resource": "plone-auth", "depends": "plone",
+                          "resources": "plone-auth", "depends": "plone",
                           "expression": "", "enabled": true, "conditionalcomment": ""
                         },
                         "barceloneta": {
-                          "resource": "plone", "depends": "*",
+                          "resources": "plone", "depends": "*",
                           "expression": "", "enabled": true, "conditionalcomment": ""
                         }
                       },
@@ -106,7 +106,7 @@ define([
 
     it('loads bundle data', function(){
       this.$pat.find('.bundle-list-item-plone a').trigger('click');
-      expect(this.$pat.find('.resource-entry .field-resource select').val()).to.equal('plone');
+      expect(this.$pat.find('.resource-entry .field-resources select').select2('val').length).to.equal(1);
     });
 
     it('edit resource data', function(){
diff --git a/tests/pattern-tinymce-test.js b/tests/pattern-tinymce-test.js
index da101a0..118ca95 100644
--- a/tests/pattern-tinymce-test.js
+++ b/tests/pattern-tinymce-test.js
@@ -60,7 +60,7 @@ define([
       });
     });
 
-    it.skip('creates tinymce', function() {
+    it('creates tinymce', function() {
       var $el = $(
        '<div>' +
        '  <textarea class="pat-tinymce">' +
@@ -72,7 +72,7 @@ define([
       tinymce.get(0).remove();
     });
 
-    it.skip('maintains an initial textarea value', function() {
+    it('maintains an initial textarea value', function() {
       var $el = $(
        '<div>' +
        '  <textarea class="pat-tinymce">' +
@@ -84,7 +84,7 @@ define([
       expect(tinymce.get(0).getContent()).to.be.equal('<p>foobar</p>');
     });
 
-    it.skip('loads buttons for plugins', function() {
+    it('loads buttons for plugins', function() {
       var $el = $(
        '<div>' +
        '  <textarea class="pat-tinymce">' +
@@ -95,7 +95,7 @@ define([
       expect(tinymce.get(0).buttons).to.have.keys('plonelink', 'ploneimage');
     });
 
-    it.skip('on form submit, save data to form', function() {
+    it('on form submit, save data to form', function() {
       var $container = $(
        '<form>' +
        '  <textarea class="pat-tinymce">' +
@@ -114,7 +114,7 @@ define([
       expect($el.val()).to.equal('<p>foobar</p>');
     });
 
-    it.skip('test create correct url from metadata', function() {
+    it('test create correct url from metadata', function() {
       var tiny = createTinymce({
         prependToUrl: 'resolveuid/',
         linkAttribute: 'UID'
@@ -124,7 +124,7 @@ define([
       };
       expect(tiny.generateUrl(data)).to.equal('resolveuid/foobar');
     });
-    it.skip('test creates correct url from metadata with append', function() {
+    it('test creates correct url from metadata with append', function() {
       var tiny = createTinymce({
         prependToUrl: 'resolveuid/',
         linkAttribute: 'UID',
@@ -135,7 +135,7 @@ define([
       };
       expect(tiny.generateUrl(data)).to.equal('resolveuid/foobar.html');
     });
-    it.skip('test parses correct attribute from url', function() {
+    it('test parses correct attribute from url', function() {
       var tiny = createTinymce({
         prependToUrl: 'resolveuid/',
         linkAttribute: 'UID'
@@ -143,7 +143,7 @@ define([
       expect(tiny.stripGeneratedUrl('resolveuid/foobar')).to.equal('foobar');
     });
 
-    it.skip('test parses correct attribute from url with appended value', function() {
+    it('test parses correct attribute from url with appended value', function() {
       var tiny = createTinymce({
         prependToUrl: 'resolveuid/',
         linkAttribute: 'UID',
@@ -152,28 +152,28 @@ define([
       expect(tiny.stripGeneratedUrl('resolveuid/foobar/@@view')).to.equal('foobar');
     });
 
-    it.skip('test get scale from url', function() {
+    it('test get scale from url', function() {
       var pattern = createTinymce({
         prependToScalePart: '/somescale/'
       });
       expect(pattern.getScaleFromUrl('foobar/somescale/foobar')).to.equal('foobar');
     });
 
-    it.skip('test get scale return null if invalid', function() {
+    it('test get scale return null if invalid', function() {
       var pattern = createTinymce({
         prependToScalePart: '/somescale/'
       });
       expect(pattern.getScaleFromUrl('foobar')).to.equal(null);
     });
 
-    it.skip('get scale handles edge case of image_ for plone', function() {
+    it('get scale handles edge case of image_ for plone', function() {
       var pattern = createTinymce({
         prependToScalePart: '/somescale'
       });
       expect(pattern.getScaleFromUrl('foobar/somescale/image_large')).to.equal('large');
     });
 
-    it.skip('get scale with appended option', function() {
+    it('get scale with appended option', function() {
       var pattern = createTinymce({
         prependToScalePart: '/somescale/',
         appendToScalePart: '/@@view'
@@ -181,7 +181,7 @@ define([
       expect(pattern.getScaleFromUrl('foobar/somescale/large/@@view')).to.equal('large');
     });
 
-    it.skip('get scale handles edge case of image_ for plone', function() {
+    it('get scale handles edge case of image_ for plone', function() {
       var pattern = createTinymce({
         prependToScalePart: '/somescale'
       });
@@ -189,7 +189,7 @@ define([
     });
 
 
-    it.skip('test add link', function() {
+    it('test add link', function() {
       var pattern = createTinymce({
         prependToUrl: 'resolveuid/',
         linkAttribute: 'UID',
@@ -207,7 +207,7 @@ define([
       });
       expect(pattern.linkModal.getLinkUrl()).to.equal('resolveuid/foobar');
     });
-    it.skip('test add external link', function() {
+    it('test add external link', function() {
       var pattern = createTinymce();
       pattern.addLinkClicked();
       var modal = pattern.linkModal;
@@ -215,14 +215,14 @@ define([
       modal.linkTypes.external.$input.attr('value', 'http://foobar');
       expect(pattern.linkModal.getLinkUrl()).to.equal('http://foobar');
     });
-    it.skip('test add email link', function() {
+    it('test add email link', function() {
       var pattern = createTinymce();
       pattern.addLinkClicked();
       pattern.linkModal.linkType = 'email';
       pattern.linkModal.linkTypes.email.$input.attr('value', 'foo at bar.com');
       expect(pattern.linkModal.getLinkUrl()).to.equal('mailto:foo at bar.com');
     });
-    it.skip('test add image link', function() {
+    it('test add image link', function() {
       var pattern = createTinymce({
         prependToUrl: 'resolveuid/',
         linkAttribute: 'UID',
@@ -241,7 +241,7 @@ define([
       expect(pattern.imageModal.getLinkUrl()).to.equal('resolveuid/foobar/@@images/image/thumb');
     });
 
-    it.skip('test adds data attributes', function() {
+    it('test adds data attributes', function() {
       var pattern = createTinymce();
 
       pattern.addLinkClicked();
@@ -258,7 +258,7 @@ define([
       expect(pattern.tiny.getContent()).to.contain('data-linktype="internal"');
     });
 
-    it.skip('test loading link also sets up related items correctly', function() {
+    it('test loading link also sets up related items correctly', function() {
       var pattern = createTinymce({
         relatedItems: {
           vocabularyUrl: '/data.json'
@@ -274,7 +274,7 @@ define([
       */
     });
 
-    it.skip('test reopen add link modal', function() {
+    it('test reopen add link modal', function() {
       var pattern = createTinymce();
       pattern.addLinkClicked();
       pattern.linkModal.hide();
@@ -283,7 +283,7 @@ define([
       expect(pattern.linkModal.modal.$modal.is(':visible')).to.equal(true);
     });
 
-    it.skip('test reopen add image modal', function() {
+    it('test reopen add image modal', function() {
       var pattern = createTinymce();
       pattern.addImageClicked();
       pattern.imageModal.hide();
@@ -292,7 +292,7 @@ define([
       expect(pattern.imageModal.modal.$modal.is(':visible')).to.equal(true);
     });
 
-    it.skip('test loads existing link external values', function() {
+    it('test loads existing link external values', function() {
       var pattern = createTinymce();
 
       pattern.tiny.setContent('<a href="foobar" data-linktype="external" data-val="foobar">foobar</a>');
@@ -303,7 +303,7 @@ define([
       expect(pattern.linkModal.linkTypes.external.$input.val()).to.equal('foobar');
     });
 
-    it.skip('test loads existing link email values', function() {
+    it('test loads existing link email values', function() {
       var pattern = createTinymce();
 
       pattern.tiny.setContent('<a href="mailto:foo at bar.com" data-linktype="email" data-val="foo at bar.com">foobar</a>');
@@ -314,7 +314,7 @@ define([
       expect(pattern.linkModal.linkTypes.email.$input.val()).to.equal('foo at bar.com');
     });
 
-    it.skip('test anchor link adds existing anchors to list', function() {
+    it('test anchor link adds existing anchors to list', function() {
       var pattern = createTinymce();
 
       pattern.tiny.setContent('<a class="mceItemAnchor" name="foobar"></a>');
@@ -324,7 +324,7 @@ define([
       expect(pattern.linkModal.linkTypes.anchor.anchorNodes.length).to.equal(1);
     });
 
-    it.skip('test anchor link adds anchors from option', function() {
+    it('test anchor link adds anchors from option', function() {
       var pattern = createTinymce({
         anchorSelector: 'h1'
       });
@@ -334,7 +334,7 @@ define([
       expect(pattern.linkModal.linkTypes.anchor.anchorNodes.length).to.equal(1);
     });
 
-    it.skip('test anchor get index', function() {
+    it('test anchor get index', function() {
       var pattern = createTinymce({
         anchorSelector: 'h1'
       });
@@ -344,7 +344,7 @@ define([
       expect(pattern.linkModal.linkTypes.anchor.getIndex('foobar')).to.equal(1);
     });
 
-    it.skip('test anchor get url', function() {
+    it('test anchor get url', function() {
       var pattern = createTinymce({
         anchorSelector: 'h1'
       });
@@ -355,7 +355,7 @@ define([
       expect(pattern.linkModal.linkTypes.anchor.toUrl()).to.equal('#blah');
     });
 
-    it.skip('test tracks link type changes', function() {
+    it('test tracks link type changes', function() {
       var pattern = createTinymce({
         anchorSelector: 'h1'
       });




-------------------------------------------------------------------------------


More information about the Testbot mailing list