suggest_file_name: refactoring and rewriting a bit
commit4fe70847c9fdbf37a536d1f1fe08ea76c1ba7b1b
authorJohn Foerch <jjfoerch@earthlink.net>
Thu, 16 Dec 2010 05:02:02 +0000 (16 00:02 -0500)
committerJohn Foerch <jjfoerch@earthlink.net>
Thu, 16 Dec 2010 05:02:18 +0000 (16 00:02 -0500)
tree41a9bd1eb527d5ea5e5d96d58d17f14211aa479e
parentd81cecae9ec9bde209e2cfa0cd4d98a97428d380
suggest_file_name: refactoring and rewriting a bit

load_spec.suggest_filename_from_uri factored out.

resolves issue271

There is still work to be done on suggest_file_name, but this patch cleans
it up a bit, and ensures slightly better filenames than before in a few
cases.  Unit tests also added.
modules/load-spec.js
modules/media.js
modules/page-modes/dailymotion.js
modules/page-modes/google-video.js
modules/page-modes/youtube.js
modules/suggest-file-name.js
tests/simple/suggest-file-name.js [new file with mode: 0644]