mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-12-28 07:33:36 +00:00
- Adds reusable validation scripts (check-x.sh) to minimize repeated (or near-repeated) code and create one source of truth - Restructures the location of download and output folders such that they are nested in the test_unstructured_ingest directory - Adds gitignore for output folders / files to avoid them accidentally getting checked into the repository - Construct paths as reusable variables declared at top of scripts - Sort order of flag for ingest calls, across all tests (this makes it easier to parse at a glance) - OVERWRITE_FIXTURES removes all old fixtures for path to guarantee no stale results are left behind - Bonus: don't check/exit on expected number of expected outputs when OVERWRITE_FIXTURES is true - Bonus: exclude file_directory from Slack and Discord test scripts (match convention in all others)
292 lines
6.8 KiB
JSON
292 lines
6.8 KiB
JSON
[
|
|
{
|
|
"type": "Title",
|
|
"element_id": "56a9f768a0968be676f9addd5ec3032e",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 1
|
|
},
|
|
"text": "Downloadify Example"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "d551bbfc9477547e4dce6264d8196c7b",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 1
|
|
},
|
|
"text": "More info available at the Github Project Page"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "971b974235a86ca628dcc713d6e2e8d9",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 1
|
|
},
|
|
"text": "Filename"
|
|
},
|
|
{
|
|
"type": "NarrativeText",
|
|
"element_id": "43f65b1c5bd47774b25c72e2f96de300",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 1
|
|
},
|
|
"text": "File Contents\n\nWhatever you put in this text box will be downloaded and saved in the file. If you leave it blank, no file will be downloaded"
|
|
},
|
|
{
|
|
"type": "NarrativeText",
|
|
"element_id": "53a4db70c6d40ed5206711ed8a255e03",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 1
|
|
},
|
|
"text": "You must have Flash 10 installed to download this file."
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "839973fba0c850f1729fad098b031203",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 1
|
|
},
|
|
"text": "Downloadify Invoke Script For This Page"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "a6f18a30c8de3b1436133823a93f50db",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 2
|
|
},
|
|
"text": "Downloadify.create('downloadify',{"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "edbfc1f9e429bd016ab71cd365adad8a",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 3
|
|
},
|
|
"text": "filename: function(){"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "fff8b2c3a9b06101fe7f64eef5c4ab2d",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 4
|
|
},
|
|
"text": "return document.getElementById('filename').value;"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "e52a1813c46049513e6beb0b5c9e2aca",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 5
|
|
},
|
|
"text": "},"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "877efc801047c9b9b245c2febc5c4cf4",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 6
|
|
},
|
|
"text": "data: function(){"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "7a384fc4bff83eec4ba849c592f38de2",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 7
|
|
},
|
|
"text": "return document.getElementById('data').value;"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "e52a1813c46049513e6beb0b5c9e2aca",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 8
|
|
},
|
|
"text": "},"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "91a68ed0c4ad18401f490396c820c497",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 9
|
|
},
|
|
"text": "onComplete: function(){"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "1f9a002d39018e06b1ab0bbc2ae1ee33",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 10
|
|
},
|
|
"text": "alert('Your File Has Been Saved! ');"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "e52a1813c46049513e6beb0b5c9e2aca",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 11
|
|
},
|
|
"text": "},"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "d4dd03a884778f7100dc6d5bbbf8b5b4",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 12
|
|
},
|
|
"text": "onCancel: function(){"
|
|
},
|
|
{
|
|
"type": "NarrativeText",
|
|
"element_id": "8790a86f91b288b989943182f120142b",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 13
|
|
},
|
|
"text": "alert('You have cancelled the saving of this file. ');"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "e52a1813c46049513e6beb0b5c9e2aca",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 14
|
|
},
|
|
"text": "},"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "c7f068e18ced43a5a5b566bb3139be83",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 15
|
|
},
|
|
"text": "onError: function(){"
|
|
},
|
|
{
|
|
"type": "NarrativeText",
|
|
"element_id": "b78d916c61dee4786a0d7142d121b5f5",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 16
|
|
},
|
|
"text": "alert('You must put something in the File Contents or there will be nothing to save! ');"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "e52a1813c46049513e6beb0b5c9e2aca",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 17
|
|
},
|
|
"text": "},"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "4e6cb015a10ef85a94cbf38f0736c963",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 18
|
|
},
|
|
"text": "swf: 'media/downloadify.swf',"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "547c1eea609aae64271813c3cc061d03",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 19
|
|
},
|
|
"text": "downloadImage: 'images/download.png',"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "08f092710daeddd051b6c9ed12f8a77d",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 20
|
|
},
|
|
"text": "width: 100,"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "4664ad91130a49e27fc2f874b5d08a68",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 21
|
|
},
|
|
"text": "height: 30,"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "577ebe0897958e450d22132ba908c640",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 22
|
|
},
|
|
"text": "transparent: true,"
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "e68f9c269ffa29b81d6ec9a8ebe47817",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 23
|
|
},
|
|
"text": "append: false"
|
|
},
|
|
{
|
|
"type": "UncategorizedText",
|
|
"element_id": "29576b54e255e3c948eea5b5904fa38b",
|
|
"metadata": {
|
|
"data_source": {},
|
|
"filetype": "text/html",
|
|
"page_number": 24
|
|
},
|
|
"text": "});"
|
|
}
|
|
] |