<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vimium/tests/unit_tests, branch 1.56</title>
<subtitle>The hacker's browser.</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/'/>
<entry>
<title>Cache content_scripts/vimium.css in chrome.storage.local.</title>
<updated>2016-04-18T11:20:32+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-04-18T10:43:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=247878a7919c5e9b27638395d479939f9ad5d22e'/>
<id>247878a7919c5e9b27638395d479939f9ad5d22e</id>
<content type='text'>
Previously, we had two different approaches.  This seems like a simpler
approach.

We simply cache the Vimium CSS in chrome.storage.local (in the
background page) and fetch it from there (in UI components).

There is also a minor change in the we no longer cache the CSS in
memory.  This seems to be the right thing to do.  Caching the CSS in
memory consumes a small amount of memory.  However, it can only speed up
the fastest loads.  It cannot speed up the first load -- which is likely
the one that matters most.  So caching the CSS in memory seems to make
little sense.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, we had two different approaches.  This seems like a simpler
approach.

We simply cache the Vimium CSS in chrome.storage.local (in the
background page) and fetch it from there (in UI components).

There is also a minor change in the we no longer cache the CSS in
memory.  This seems to be the right thing to do.  Caching the CSS in
memory consumes a small amount of memory.  However, it can only speed up
the fastest loads.  It cannot speed up the first load -- which is likely
the one that matters most.  So caching the CSS in memory seems to make
little sense.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename handlerStack constants.</title>
<updated>2016-03-30T13:58:46+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-30T12:07:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=21da3fcafbb29540788037dbcdbdce79ad14e650'/>
<id>21da3fcafbb29540788037dbcdbdce79ad14e650</id>
<content type='text'>
Problems:
  - The meanings of some of the Mode/handlerStack constant names is far
    from obvious.
  - The same thing is named different things in different places.

This changes various constant names such that:
  - the names used in the handler stack and in the modes are the same.
  - ditto vis-a-vis DomUtils.

Also, break out the core of the handler stacks' `bubbleEvent` method
into a switch statements.  This makes it more obvious that the cases are
mutually exclusive.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problems:
  - The meanings of some of the Mode/handlerStack constant names is far
    from obvious.
  - The same thing is named different things in different places.

This changes various constant names such that:
  - the names used in the handler stack and in the modes are the same.
  - ditto vis-a-vis DomUtils.

Also, break out the core of the handler stacks' `bubbleEvent` method
into a switch statements.  This makes it more obvious that the cases are
mutually exclusive.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use image data for icons.</title>
<updated>2016-03-28T07:21:20+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-25T06:31:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=23884b31ba643f1ad1e44f5fc949bd3329df6985'/>
<id>23884b31ba643f1ad1e44f5fc949bd3329df6985</id>
<content type='text'>
This uses image data (instead of a path) for the page icon.  It also
only builds 19x19 and 38x38 icons, as per the
chrome.browserAction.setIcon() documentation.

This appears to fix a memory leak related to a recent Chrome regression
(versions 49+).

Fixes #2055.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This uses image data (instead of a path) for the page icon.  It also
only builds 19x19 and 38x38 icons, as per the
chrome.browserAction.setIcon() documentation.

This appears to fix a memory leak related to a recent Chrome regression
(versions 49+).

Fixes #2055.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test for extractQuery().</title>
<updated>2016-03-27T09:22:58+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-27T09:20:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=6af7cae45c498628c7052116cedccc369e9fbe64'/>
<id>6af7cae45c498628c7052116cedccc369e9fbe64</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test for escapeRegexSpecialCharacters().</title>
<updated>2016-03-27T09:10:28+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-27T09:10:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=824ab0dc6bd8bec3c75834b736360276877dd74c'/>
<id>824ab0dc6bd8bec3c75834b736360276877dd74c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test for invokeCommandString().</title>
<updated>2016-03-27T09:05:20+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-27T09:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=0656f3ef0dd5f3cfa12f6c925298f30168b00e12'/>
<id>0656f3ef0dd5f3cfa12f6c925298f30168b00e12</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test for badly-formed exclusion regexp.</title>
<updated>2016-03-26T13:39:27+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-26T13:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=e2ea471eff20504b53da36a791769d246fff9593'/>
<id>e2ea471eff20504b53da36a791769d246fff9593</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Multiple minor tweaks.</title>
<updated>2016-03-26T13:20:51+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-26T12:53:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=a1103158551ace4232b613d290f5d193a7c5185f'/>
<id>a1103158551ace4232b613d290f5d193a7c5185f</id>
<content type='text'>
Some of this code is showing its age, so these are just a number of
minor tweaks (to keep things clear, consistent and concise).

Also, add a couple of tests (while we're at it).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some of this code is showing its age, so these are just a number of
minor tweaks (to keep things clear, consistent and concise).

Also, add a couple of tests (while we're at it).
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Utils.makeIdempotent.</title>
<updated>2016-03-18T06:12:58+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-18T06:12:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=5f1acf3c66d9e128883a7a54409a08a42ab9ea05'/>
<id>5f1acf3c66d9e128883a7a54409a08a42ab9ea05</id>
<content type='text'>
The intention is to use this to clean up some of the initialisation
sequences in the front end.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The intention is to use this to clean up some of the initialisation
sequences in the front end.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tweaks for #2053.</title>
<updated>2016-03-17T12:35:33+00:00</updated>
<author>
<name>Stephen Blott</name>
</author>
<published>2016-03-17T12:35:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/vimium/commit/?id=16b150c108f72cc7b3e33c6fa46bd5c2d06c71c8'/>
<id>16b150c108f72cc7b3e33c6fa46bd5c2d06c71c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
