-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix formatting, add more thorough tests
- Loading branch information
1 parent
d58094d
commit cbb46e6
Showing
5 changed files
with
196 additions
and
5 deletions.
There are no files selected for viewing
114 changes: 114 additions & 0 deletions
114
birdie_snapshots/created_page_with_reference_html.accepted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
version: 1.1.5 | ||
title: Created Page with Reference HTML | ||
file: ./test/chrobot_test.gleam | ||
test_name: create_page_test | ||
--- | ||
<html><head> | ||
<meta http-equiv="content-type" content="text/html; charset=windows-1252"> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<title>The World Wide Web project</title> | ||
<nextid n="55"> | ||
</nextid> | ||
</header> | ||
|
||
<h1>World Wide Web</h1>The WorldWideWeb (W3) is a wide-area<a name="0" href="http://info.cern.ch/hypertext/WWW/WhatIs.html"> | ||
hypermedia</a> information retrieval | ||
initiative aiming to give universal | ||
access to a large universe of documents.<p> | ||
Everything there is online about | ||
W3 is linked directly or indirectly | ||
to this document, including an <a name="24" href="http://info.cern.ch/hypertext/WWW/Summary.html">executive | ||
summary</a> of the project, <a name="29" href="http://info.cern.ch/hypertext/WWW/Administration/Mailing/Overview.html">Mailing lists</a> | ||
, <a name="30" href="http://info.cern.ch/hypertext/WWW/Policy.html">Policy</a> , November's <a name="34" href="http://info.cern.ch/hypertext/WWW/News/9211.html">W3 news</a> , | ||
<a name="41" href="http://info.cern.ch/hypertext/WWW/FAQ/List.html">Frequently Asked Questions</a> . | ||
</p> | ||
<dl> | ||
<dt><a name="44" href="http://info.cern.ch/hypertext/DataSources/Top.html">What's out there?</a> | ||
</dt> | ||
<dd> Pointers to the | ||
world's online information,<a name="45" href="http://info.cern.ch/hypertext/DataSources/bySubject/Overview.html"> | ||
subjects</a> | ||
, <a name="z54" href="http://info.cern.ch/hypertext/DataSources/WWW/Servers.html">W3 servers</a>, etc. | ||
</dd> | ||
<dt><a name="46" href="http://info.cern.ch/hypertext/WWW/Help.html">Help</a> | ||
</dt> | ||
<dd> on the browser you are using | ||
</dd> | ||
<dt><a name="13" href="http://info.cern.ch/hypertext/WWW/Status.html">Software Products</a> | ||
</dt> | ||
<dd> A list of W3 project | ||
components and their current state. | ||
(e.g. <a name="27" href="http://info.cern.ch/hypertext/WWW/LineMode/Browser.html">Line Mode</a> ,X11 <a name="35" href="http://info.cern.ch/hypertext/WWW/Status.html#35">Viola</a> , <a name="26" href="http://info.cern.ch/hypertext/WWW/NeXT/WorldWideWeb.html">NeXTStep</a> | ||
, <a name="25" href="http://info.cern.ch/hypertext/WWW/Daemon/Overview.html">Servers</a> , <a name="51" href="http://info.cern.ch/hypertext/WWW/Tools/Overview.html">Tools</a> ,<a name="53" href="http://info.cern.ch/hypertext/WWW/MailRobot/Overview.html"> Mail robot</a> ,<a name="52" href="http://info.cern.ch/hypertext/WWW/Status.html#57"> | ||
Library</a> ) | ||
</dd> | ||
<dt><a name="47" href="http://info.cern.ch/hypertext/WWW/Technical.html">Technical</a> | ||
</dt> | ||
<dd> Details of protocols, formats, | ||
program internals etc | ||
</dd> | ||
<dt><a name="40" href="http://info.cern.ch/hypertext/WWW/Bibliography.html">Bibliography</a> | ||
</dt> | ||
<dd> Paper documentation | ||
on W3 and references. | ||
</dd> | ||
<dt><a name="14" href="http://info.cern.ch/hypertext/WWW/People.html">People</a> | ||
</dt> | ||
<dd> A list of some people involved | ||
in the project. | ||
</dd> | ||
<dt><a name="15" href="http://info.cern.ch/hypertext/WWW/History.html">History</a> | ||
</dt> | ||
<dd> A summary of the history | ||
of the project. | ||
</dd> | ||
<dt><a name="37" href="http://info.cern.ch/hypertext/WWW/Helping.html">How can I help</a> ? | ||
</dt> | ||
<dd> If you would like | ||
to support the web.. | ||
</dd> | ||
<dt><a name="48" href="http://info.cern.ch/hypertext/README.html">Getting code</a> | ||
</dt> | ||
<dd> Getting the code by<a name="49" href="http://info.cern.ch/hypertext/WWW/LineMode/Defaults/Distribution.html"> | ||
anonymous FTP</a> , etc. | ||
</dd> | ||
</dl> | ||
|
||
<div> | ||
<h2>And now for something completely different</h2> | ||
<div id="wibble"> | ||
Wibble | ||
</div> | ||
<div id="wobble" title="wobble" data-foo="bar"> | ||
Wobble | ||
</div> | ||
|
||
<div> | ||
<label for="demo-checkbox">This is a demo checkbox to test page interactivity</label> | ||
<input type="checkbox" id="demo-checkbox" name="demo-checkbox" value="demo-checkbox" checked=""> | ||
</div> | ||
|
||
<div> | ||
<label for="demo-text-input"> This is a demo text input to test page interactivity</label> | ||
<input type="text" id="demo-text-input" name="demo-text-input"> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
document.querySelector("#demo-text-input").addEventListener("keydown", function (e) { | ||
if (e.key === "Enter") { | ||
e.target.value = "ENTER KEY PRESSED" | ||
} | ||
console.log('keydown :', e) | ||
}) | ||
document.querySelector("#demo-text-input").addEventListener("keyup", function (e) { | ||
console.log('keyup:', e) | ||
}) | ||
</script> | ||
|
||
|
||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
version: 1.1.5 | ||
title: Opened Sample Page | ||
file: ./test/chrobot_test.gleam | ||
test_name: open_test | ||
--- | ||
<html><head> | ||
<title>Chrobot Test Page</title> | ||
</head> | ||
<body> | ||
<h1>Chrobot Test Page</h1> | ||
<div id="wibble">wobble</div> | ||
|
||
|
||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters