Re: [pgadmin-hackers] [patch] Refactor: clipboard, translations, jasmine
От
Atira Odhner
Тема
Re: [pgadmin-hackers] [patch] Refactor: clipboard, translations, jasmine
Дата
Msg-id
CA+Vc24qyx7sshLda_iqC-GtGLqgXbsAcGV62jY7FuYz5n4zzwA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Re: [pgadmin-hackers] [patch] Refactor: clipboard, translations, jasmine Atira Odhner <aodhner@pivotal.io>
Re: [pgadmin-hackers] [patch] Refactor: clipboard, translations, jasmine Atira Odhner <aodhner@pivotal.io>
Re: [pgadmin-hackers] [patch] Refactor: clipboard, translations, jasmine Dave Page <dpage@pgadmin.org>
Re: [pgadmin-hackers] [patch] Refactor: clipboard, translations, jasmine Atira Odhner <aodhner@pivotal.io>
Fixed up the patch to remove an extra print statement.
On Fri, Feb 24, 2017 at 2:14 PM, Atira Odhner <aodhner@pivotal.io> wrote:
Hi hackers,We made some changes to start to make the javascript testable:- Move clipboard copying into its own file so we can test theinteraction with it when we start adding column selection- Create a translations.js and translate.js which uses flask to pull in translations, butlets us have the flask template rendering confined to that one file,enabling us to test javascript files that rely on translations- add jasmine javascript testing which currently runs from the browserat /static/SpecRunner.html when the app is up.- delete some dead code from sqleditor.jsWhy we decided to make translate.js only support interpolations of the form "%(variable)s":- it matches functionality in python- having named variables allows for multiple interpolations in one sentence without the risk that a translation will swap the orderFuture things we'd like to add to this:- make jasmine run from the commandline with the rest of the tests- support for translations with number formattingTira & Sarah
В списке pgadmin-hackers по дате отправления
От: Atira Odhner
Дата: