{********************************************************************** This file is part of the Free Component Library (FCL) Some DOM test cases adapted by hand (because automatic conversion is not yet possible for them). Copyright (c) 2001-2004 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. Copyright (c) 2009 by Sergei Gorelkin, sergei_gorelkin@mail.ru See the file COPYING.FPC, included in this distribution, for details about the copyright. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **********************************************************************} unit extras2; {$mode objfpc}{$H+} interface uses SysUtils, Classes, DOM, xmlread, xmlwrite, domunit, testregistry; implementation type TDOMTestExtra2 = class(TDOMTestBase) published procedure ls3_canonicform08; procedure ls3_canonicform09; procedure ls3_canonicform10; procedure ls3_canonicform11; procedure ls3_DomWriterTest5; procedure ls3_DomWriterTest6; end; const // This is example #1 from c14n specs, but modified to comply with HTML grammar canonicform01 = ''^M^J+ ^M^J+ ''^M^J+ ^M^J+ ''^M^J+ '
Hello, world!
'^M^J+ ^M^J+ ''^M^J+ ^M^J+ ''^M^J+ ^M^J+ ''^M^J; canonicform03 = ']>'^M^J+ '