Merge lp:~hatch/juju-gui/ci-fixes into lp:juju-gui/experimental
Proposed by
Jeff Pihach
Status: | Merged |
---|---|
Merged at revision: | 649 |
Proposed branch: | lp:~hatch/juju-gui/ci-fixes |
Merge into: | lp:juju-gui/experimental |
Diff against target: |
59 lines (+8/-7) 2 files modified
test/test_fakebackend.js (+0/-1) test/test_resizing_textarea.js (+8/-6) |
To merge this branch: | bzr merge lp:~hatch/juju-gui/ci-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+162533@code.launchpad.net |
Description of the change
CI Fixes
Implements workaround for cross browser textarea
height offset issues and removes the shortened
timeout on the import tests
To post a comment you must log in.
Reviewers: mp+162533_ code.launchpad. net,
Message:
Please take a look.
Description:
CI Fixes
Implements workaround for cross browser textarea
height offset issues and removes the shortened
timeout on the import tests
https:/ /code.launchpad .net/~hatch/ juju-gui/ ci-fixes/ +merge/ 162533
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/9204044/
Affected files: fakebackend. js resizing_ textarea. js
A [revision details]
M test/test_
M test/test_
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: test/test_ fakebackend. js fakebackend. js' fakebackend. js 2013-05-02 18:56:43 +0000 fakebackend. js 2013-05-05 16:38:39 +0000
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -287,7 +287,6 @@
});
describe( 'FakeBackend. importEnvironme nt', function(done) {
- this.timeout(300);
it('rejects unauthenticated calls', function(done) {
fakebackend. logout( );
Index: test/test_ resizing_ textarea. js resizing_ textarea. js' resizing_ textarea. js 2013-05-02 21:14:35 +0000 resizing_ textarea. js 2013-05-05 16:38:39 +0000
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -10,7 +10,7 @@
describe( 'textarea autosize plugin', function() {
- var Y, test_text, container, textarea, target, target2, ie_fudge;
+ var Y, test_text, container, textarea, target, target2, kludge;
before( function( done) { g).use( [
Y = YUI(GlobalConfi
@@ -31,11 +31,13 @@
// XXX: BradCrittenden 2013-05-02 bug=1175781: This work-around target. getComputedStyl e('height' )) + ie_fudge; target. getComputedStyl e('height' )) + kludge;
// is just temporary. The root cause needs to be found and fixed.
- ie_fudge = 0;
- if (Y.UA.ie === 10) {
+ // The test check properties are inverted and will need to be fixed.
+ kludge = 0;
+ if (Y.UA.ie === 10 || Y.UA.gecko) {
// IE10 Computes sizes wrong.
- ie_fudge = 6;
+ kludge = 6;
}
+
done();
});
});
@@ -73,7 +75,7 @@
*
*/
function get_height(target) {
- return clean_size(
+ return clean_size(
}
/**
@@ -235,7 +237,7 @@
});
target. show(); equal(300, current_height,
- var current_height = get_height(target) - ie_fudge;
+ var current_height = get_height(target) - kludge;
assert.
'The height should start out at 300px per the min_height cfg');
});