Auto-tools/Projects/CrossWeave/Test Format/History: Difference between revisions

No edit summary
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
For example:
For example:


  "history1": [
history1:
    { "uri": "http://www.google.com/", "title": "Google",
  * uri: http://www.google.com/
      "visits": [
    title: Google
        { "type": 1, "date": 0 },
    visits:
        { "type": 2, "date": -1 } ] },
      * type: 1
    { "uri": "http://www.cnn.com/", "title": "CNN",
        date: 0
      "visits": [
      * type: 2
        { "type": 1, "date": -1 },
        date: -1
        { "type": 2, "date": -36 } ] }
  * uri: http://www.cnn.com/
  ]
    title: CNN
    visits:
      * type: 1
        date: -1
      * type: 2
        date: -36


The history list used for deletions looks different.  It's an array of objects, each of which represents a type of history to delete.  There are three different types:
The history list used for deletions looks different.  It's an array of objects, each of which represents a type of history to delete.  There are three different types:
Line 32: Line 37:
For example:
For example:


  "history-to-delete": [
history-to-delete:
    { "uri": "http://www.cnn.com/" },
  * uri: http://www.cnn.com/
    { "begin": -24, "end": -1 },
  * begin: -24
    { "host": "www.google.com" }
    end: -1
  ]
  * host: www.google.com


== Actions ==
== Actions ==
Line 44: Line 49:
== Example ==
== Example ==


For a more detailed example, see the [http://hg.mozilla.org/automation/crossweave/file/7d56ff3181ff/unittests/test_history.json CrossWeave history unit test].
For a more detailed example, see the [http://hg.mozilla.org/automation/crossweave/file/605cc23b027a/unittests/history.test CrossWeave history unit test].
Confirmed users
1,905

edits