From kwrite-devel Mon Apr 15 23:54:18 2013 From: "Commit Hook" Date: Mon, 15 Apr 2013 23:54:18 +0000 To: kwrite-devel Subject: Re: Review Request 110018: Rewrote xml indentation script and added some tests Message-Id: <20130415235418.2960.13750 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=136607008826121 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2980697365786564972==" --===============2980697365786564972== Content-Type: multipart/alternative; boundary="===============5199868018782199094==" --===============5199868018782199094== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/110018/ ----------------------------------------------------------- (Updated April 15, 2013, 11:54 p.m.) Status ------ This change has been marked as submitted. Review request for Kate. Description ------- After spending too much time trying to improve the original regular expression based xml.js, I re-did it using the lovely isCode, isComment, is... functions. Works pretty good, but it's hard to compare with what was done w/ the old xml.js as there were no tests. A remaining issue is that this rewrite is also affected by Bug 316809. Diffs ----- part/script/data/indentation/xml.js ff92f18 part/script/data/libraries/string.js 406ac4f tests/data/indent/xml/.kateconfig PRE-CREATION tests/data/indent/xml/arguments1/expected PRE-CREATION tests/data/indent/xml/arguments1/input.js PRE-CREATION tests/data/indent/xml/arguments1/origin PRE-CREATION tests/data/indent/xml/arguments2/expected PRE-CREATION tests/data/indent/xml/arguments2/input.js PRE-CREATION tests/data/indent/xml/arguments2/origin PRE-CREATION tests/data/indent/xml/arguments3/expected PRE-CREATION tests/data/indent/xml/arguments3/input.js PRE-CREATION tests/data/indent/xml/arguments3/origin PRE-CREATION tests/data/indent/xml/arguments4/expected PRE-CREATION tests/data/indent/xml/arguments4/input.js PRE-CREATION tests/data/indent/xml/arguments4/origin PRE-CREATION tests/data/indent/xml/closing1/expected PRE-CREATION tests/data/indent/xml/closing1/input.js PRE-CREATION tests/data/indent/xml/closing1/origin PRE-CREATION tests/data/indent/xml/closing2/expected PRE-CREATION tests/data/indent/xml/closing2/input.js PRE-CREATION tests/data/indent/xml/closing2/origin PRE-CREATION tests/data/indent/xml/closing3/expected PRE-CREATION tests/data/indent/xml/closing3/input.js PRE-CREATION tests/data/indent/xml/closing3/origin PRE-CREATION tests/data/indent/xml/comment1/README PRE-CREATION tests/data/indent/xml/comment1/expected PRE-CREATION tests/data/indent/xml/comment1/input.js PRE-CREATION tests/data/indent/xml/comment1/origin PRE-CREATION tests/data/indent/xml/comment2/expected PRE-CREATION tests/data/indent/xml/comment2/input.js PRE-CREATION tests/data/indent/xml/comment2/origin PRE-CREATION tests/data/indent/xml/opening1/expected PRE-CREATION tests/data/indent/xml/opening1/input.js PRE-CREATION tests/data/indent/xml/opening1/origin PRE-CREATION tests/data/indent/xml/self_closing1/expected PRE-CREATION tests/data/indent/xml/self_closing1/input.js PRE-CREATION tests/data/indent/xml/self_closing1/origin PRE-CREATION tests/data/indent/xml/text1/expected PRE-CREATION tests/data/indent/xml/text1/input.js PRE-CREATION tests/data/indent/xml/text1/origin PRE-CREATION tests/data/indent/xml/text2/expected PRE-CREATION tests/data/indent/xml/text2/input.js PRE-CREATION tests/data/indent/xml/text2/origin PRE-CREATION tests/data/indent/xml/xhtml1/expected PRE-CREATION tests/data/indent/xml/xhtml1/input.js PRE-CREATION tests/data/indent/xml/xhtml1/origin PRE-CREATION tests/indenttest.h e9e1609 tests/indenttest.cpp c3ffbed Diff: http://git.reviewboard.kde.org/r/110018/diff/ Testing ------- Wrote a series of blackbox tests and they all pass. Thanks, Gerald Senarclens de Grancy --===============5199868018782199094== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit
This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/110018/

This change has been marked as submitted.


Review request for Kate.
By Gerald Senarclens de Grancy.

Updated April 15, 2013, 11:54 p.m.

Description

After spending too much time trying to improve the original regular expression based xml.js, I re-did it using the lovely isCode, isComment, is... functions.

Works pretty good, but it's hard to compare with what was done w/ the old xml.js as there were no tests.

A remaining issue is that this rewrite is also affected by Bug 316809.

Testing

Wrote a series of blackbox tests and they all pass.

Diffs

  • part/script/data/indentation/xml.js (ff92f18)
  • part/script/data/libraries/string.js (406ac4f)
  • tests/data/indent/xml/.kateconfig (PRE-CREATION)
  • tests/data/indent/xml/arguments1/expected (PRE-CREATION)
  • tests/data/indent/xml/arguments1/input.js (PRE-CREATION)
  • tests/data/indent/xml/arguments1/origin (PRE-CREATION)
  • tests/data/indent/xml/arguments2/expected (PRE-CREATION)
  • tests/data/indent/xml/arguments2/input.js (PRE-CREATION)
  • tests/data/indent/xml/arguments2/origin (PRE-CREATION)
  • tests/data/indent/xml/arguments3/expected (PRE-CREATION)
  • tests/data/indent/xml/arguments3/input.js (PRE-CREATION)
  • tests/data/indent/xml/arguments3/origin (PRE-CREATION)
  • tests/data/indent/xml/arguments4/expected (PRE-CREATION)
  • tests/data/indent/xml/arguments4/input.js (PRE-CREATION)
  • tests/data/indent/xml/arguments4/origin (PRE-CREATION)
  • tests/data/indent/xml/closing1/expected (PRE-CREATION)
  • tests/data/indent/xml/closing1/input.js (PRE-CREATION)
  • tests/data/indent/xml/closing1/origin (PRE-CREATION)
  • tests/data/indent/xml/closing2/expected (PRE-CREATION)
  • tests/data/indent/xml/closing2/input.js (PRE-CREATION)
  • tests/data/indent/xml/closing2/origin (PRE-CREATION)
  • tests/data/indent/xml/closing3/expected (PRE-CREATION)
  • tests/data/indent/xml/closing3/input.js (PRE-CREATION)
  • tests/data/indent/xml/closing3/origin (PRE-CREATION)
  • tests/data/indent/xml/comment1/README (PRE-CREATION)
  • tests/data/indent/xml/comment1/expected (PRE-CREATION)
  • tests/data/indent/xml/comment1/input.js (PRE-CREATION)
  • tests/data/indent/xml/comment1/origin (PRE-CREATION)
  • tests/data/indent/xml/comment2/expected (PRE-CREATION)
  • tests/data/indent/xml/comment2/input.js (PRE-CREATION)
  • tests/data/indent/xml/comment2/origin (PRE-CREATION)
  • tests/data/indent/xml/opening1/expected (PRE-CREATION)
  • tests/data/indent/xml/opening1/input.js (PRE-CREATION)
  • tests/data/indent/xml/opening1/origin (PRE-CREATION)
  • tests/data/indent/xml/self_closing1/expected (PRE-CREATION)
  • tests/data/indent/xml/self_closing1/input.js (PRE-CREATION)
  • tests/data/indent/xml/self_closing1/origin (PRE-CREATION)
  • tests/data/indent/xml/text1/expected (PRE-CREATION)
  • tests/data/indent/xml/text1/input.js (PRE-CREATION)
  • tests/data/indent/xml/text1/origin (PRE-CREATION)
  • tests/data/indent/xml/text2/expected (PRE-CREATION)
  • tests/data/indent/xml/text2/input.js (PRE-CREATION)
  • tests/data/indent/xml/text2/origin (PRE-CREATION)
  • tests/data/indent/xml/xhtml1/expected (PRE-CREATION)
  • tests/data/indent/xml/xhtml1/input.js (PRE-CREATION)
  • tests/data/indent/xml/xhtml1/origin (PRE-CREATION)
  • tests/indenttest.h (e9e1609)
  • tests/indenttest.cpp (c3ffbed)

View Diff

--===============5199868018782199094==-- --===============2980697365786564972== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel --===============2980697365786564972==--